Fix showing an editor save button in cases where it wasn't required
This commit is contained in:
parent
08a34d8a68
commit
9fda82839b
4 changed files with 7 additions and 4 deletions
|
@ -169,7 +169,7 @@ describe('Task', () => {
|
|||
cy.get('.task-view .details.content.description .editor .vue-easymde .EasyMDEContainer .CodeMirror-scroll')
|
||||
.type('{selectall}New Description')
|
||||
cy.get('.task-view .details.content.description .editor a')
|
||||
.contains('Done')
|
||||
.contains('save')
|
||||
.click()
|
||||
|
||||
cy.get('.task-view .details.content.description h3 span.is-small.has-text-success')
|
||||
|
|
|
@ -96,7 +96,8 @@ export default {
|
|||
default: () => '',
|
||||
},
|
||||
showSave: {
|
||||
default: true,
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
|
|
|
@ -78,6 +78,7 @@
|
|||
"
|
||||
v-model="c.comment"
|
||||
:bottom-actions="actions[c.id]"
|
||||
:show-save="true"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -113,7 +114,6 @@
|
|||
:upload-callback="attachmentUpload"
|
||||
:upload-enabled="true"
|
||||
:placeholder="$t('task.comment.placeholder')"
|
||||
:show-save="false"
|
||||
v-if="editorActive"
|
||||
v-model="newComment.comment"
|
||||
/>
|
||||
|
|
|
@ -23,7 +23,9 @@
|
|||
@change="save"
|
||||
:placeholder="$t('task.description.placeholder')"
|
||||
:empty-text="$t('task.description.empty')"
|
||||
v-model="task.description"/>
|
||||
:show-save="true"
|
||||
v-model="task.description"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
Loading…
Reference in a new issue