clean up text editor button changes
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
5cde4c3ab8
commit
c16c454f36
@ -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>
|
||||
</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
|
||||
} else {
|
||||
this.isPreviewActive = false;
|
||||
this.isEditActive = true;
|
||||
|
Reference in New Issue
Block a user