Do not popup dialog if autosave is on
This commit is contained in:
parent
7ec3f49c3e
commit
a73f9771ee
|
@ -15,7 +15,11 @@ const DraftCloser = {
|
||||||
],
|
],
|
||||||
computed: {
|
computed: {
|
||||||
action () {
|
action () {
|
||||||
return this.$store.getters.mergedConfig.unsavedPostAction
|
if (this.$store.getters.mergedConfig.autoSaveDraft) {
|
||||||
|
return 'save'
|
||||||
|
} else {
|
||||||
|
return this.$store.getters.mergedConfig.unsavedPostAction
|
||||||
|
}
|
||||||
},
|
},
|
||||||
shouldConfirm () {
|
shouldConfirm () {
|
||||||
return this.action === 'confirm'
|
return this.action === 'confirm'
|
||||||
|
|
|
@ -525,7 +525,7 @@
|
||||||
{{ $t('settings.auto_save_draft') }}
|
{{ $t('settings.auto_save_draft') }}
|
||||||
</BooleanSetting>
|
</BooleanSetting>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li v-if="!autoSaveDraft">
|
||||||
<ChoiceSetting
|
<ChoiceSetting
|
||||||
id="unsavedPostAction"
|
id="unsavedPostAction"
|
||||||
path="unsavedPostAction"
|
path="unsavedPostAction"
|
||||||
|
|
Loading…
Reference in New Issue