Do not popup dialog if autosave is on
This commit is contained in:
parent
86f6fbeb46
commit
5bc4ea2904
|
@ -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'
|
||||
|
|
|
@ -460,7 +460,7 @@
|
|||
{{ $t('settings.auto_save_draft') }}
|
||||
</BooleanSetting>
|
||||
</li>
|
||||
<li>
|
||||
<li v-if="!autoSaveDraft">
|
||||
<ChoiceSetting
|
||||
id="unsavedPostAction"
|
||||
path="unsavedPostAction"
|
||||
|
|
Loading…
Reference in a new issue