commit: 5bc4ea29044f0ccda07af4cb202a9fe672f6dbeb
parent 86f6fbeb46546e81954606c8e9eb6e6ca83bcd78
Author: tusooa <tusooa@kazv.moe>
Date: Thu, 6 Apr 2023 15:13:20 -0400
Do not popup dialog if autosave is on
Diffstat:
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/components/draft_closer/draft_closer.js b/src/components/draft_closer/draft_closer.js
@@ -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'
diff --git a/src/components/settings_modal/tabs/general_tab.vue b/src/components/settings_modal/tabs/general_tab.vue
@@ -460,7 +460,7 @@
{{ $t('settings.auto_save_draft') }}
</BooleanSetting>
</li>
- <li>
+ <li v-if="!autoSaveDraft">
<ChoiceSetting
id="unsavedPostAction"
path="unsavedPostAction"