Commit 4fae2f8e authored by HJ's avatar HJ 🐼

track if settings modal has been opened once

parent 94436c1f
......@@ -30,6 +30,9 @@ const SettingsModal = {
modalActivated () {
return this.$store.state.interface.settingsModalState !== 'hidden'
},
modalOpenedOnce () {
return this.$store.state.interface.settingsModalLoaded
},
modalPeeked () {
return this.$store.state.interface.settingsModalState === 'minimized'
}
......
......@@ -43,7 +43,7 @@
</button>
</div>
<div class="panel-body">
<SettingsModalContent v-if="modalActivated" />
<SettingsModalContent v-if="modalOpenedOnce" />
</div>
</div>
</Modal>
......
......@@ -2,6 +2,7 @@ import { set, delete as del } from 'vue'
const defaultState = {
settingsModalState: 'hidden',
settingsModalLoaded: false,
settings: {
currentSaveStateNotice: null,
noticeClearTimeout: null,
......@@ -54,6 +55,9 @@ const interfaceMod = {
},
openSettingsModal (state) {
state.settingsModalState = 'visible'
if (!state.settingsModalLoaded) {
state.settingsModalLoaded = true
}
}
},
actions: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment