track if settings modal has been opened once
This commit is contained in:
parent
94436c1f85
commit
4fae2f8ea8
3 changed files with 8 additions and 1 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue