Improve editor buttons UX #361
@ -2,7 +2,7 @@
|
||||
<div :class="{'is-pulled-up': isEditEnabled}" class="editor">
|
||||
<div class="tabs is-right" v-if="hasPreview && isEditEnabled && !hasEditBottom">
|
||||
<ul>
|
||||
<li :class="{'is-active': isEditActive}">
|
||||
<li>
|
||||
|
||||
<a v-if="!isEditActive" @click="toggleEdit">Edit</a>
|
||||
<a v-else @click="toggleEdit">Done</a>
|
||||
</li>
|
||||
@ -22,9 +22,9 @@
|
||||
|
||||
<ul class="actions">
|
||||
<template v-if="hasEditBottom">
|
||||
<li :class="{'is-active': isEditActive}">
|
||||
<li>
|
||||
<a v-if="!isEditActive" @click="toggleEdit">Edit</a>
|
||||
<a v-else @click="toggleEdit">Save</a>
|
||||
<a v-else @click="toggleEdit">Done</a>
|
||||
konrad
commented
I think this should say "Done" as well to be consistent with the rest. I think this should say "Done" as well to be consistent with the rest.
|
||||
</li>
|
||||
</template>
|
||||
<li v-for="(action, k) in bottomActions" :key="k">
|
||||
@ -395,7 +395,7 @@ export default {
|
||||
this.isPreviewActive = true;
|
||||
this.isEditActive = false;
|
||||
this.renderPreview();
|
||||
this.$emit('change');
|
||||
this.bubble(0); // save instantly
|
||||
konrad
commented
Please use Please use `this.bubble()`.
|
||||
} else {
|
||||
this.isPreviewActive = false;
|
||||
this.isEditActive = true;
|
||||
|
Reference in New Issue
Block a user
I think we can also remove this since there's only ever one item now - that way all of them have the same "visual hierachy"