Do not popup dialog if autosave is on

This commit is contained in:
tusooa 2023-04-06 15:13:20 -04:00
parent 7ec3f49c3e
commit a73f9771ee
No known key found for this signature in database
GPG Key ID: 42AEC43D48433C51
2 changed files with 6 additions and 2 deletions

View File

@ -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'

View File

@ -525,7 +525,7 @@
{{ $t('settings.auto_save_draft') }}
</BooleanSetting>
</li>
<li>
<li v-if="!autoSaveDraft">
<ChoiceSetting
id="unsavedPostAction"
path="unsavedPostAction"