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: { computed: {
action () { action () {
if (this.$store.getters.mergedConfig.autoSaveDraft) {
return 'save'
} else {
return this.$store.getters.mergedConfig.unsavedPostAction return this.$store.getters.mergedConfig.unsavedPostAction
}
}, },
shouldConfirm () { shouldConfirm () {
return this.action === 'confirm' return this.action === 'confirm'

View File

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