Do not popup dialog if autosave is on
This commit is contained in:
parent
86f6fbeb46
commit
5bc4ea2904
2 changed files with 6 additions and 2 deletions
|
|
@ -15,7 +15,11 @@ const DraftCloser = {
|
|||
],
|
||||
computed: {
|
||||
action () {
|
||||
return this.$store.getters.mergedConfig.unsavedPostAction
|
||||
if (this.$store.getters.mergedConfig.autoSaveDraft) {
|
||||
return 'save'
|
||||
} else {
|
||||
return this.$store.getters.mergedConfig.unsavedPostAction
|
||||
}
|
||||
},
|
||||
shouldConfirm () {
|
||||
return this.action === 'confirm'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue