diff options
| author | Terry Truong <terry06890@gmail.com> | 2023-01-25 19:39:09 +1100 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2023-01-25 19:39:09 +1100 |
| commit | ddb38fc873d6bbce5a69d059237374e6ab23422f (patch) | |
| tree | 7b629048cca0c3660967b86689db337004e06119 /src/App.vue | |
| parent | 56abab8390a50b026433793befc67587c08d5a21 (diff) | |
Add intro modal
Diffstat (limited to 'src/App.vue')
| -rw-r--r-- | src/App.vue | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/App.vue b/src/App.vue index f807836..c258b0d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -60,6 +60,9 @@ <help-modal v-if="helpOpen" :vert="vert" @close="helpOpen = false"/> </transition> <transition name="fade"> + <intro-modal v-if="showIntro" :vert="vert" @close="onCloseIntro"/> + </transition> + <transition name="fade"> <loading-modal v-if="loadingMsg != null" :msg="loadingMsg"/> </transition> </div> @@ -74,6 +77,7 @@ import InfoModal from './components/InfoModal.vue'; import SearchModal from './components/SearchModal.vue'; import SettingsModal from './components/SettingsModal.vue'; import HelpModal from './components/HelpModal.vue'; +import IntroModal from './components/IntroModal.vue'; import LoadingModal from './components/LoadingModal.vue'; import IconButton from './components/IconButton.vue'; @@ -421,6 +425,17 @@ function onSettingChg(option: string){ const helpOpen = ref(false); +// ========== For intro modal ========== + +const showIntro = ref(!store.introSkip); +function onCloseIntro(){ + showIntro.value = false; + if (store.introSkip == false){ + store.introSkip = true; + store.save('introSkip'); + } +} + // ========== For loading modal ========== const SERVER_WAIT_MSG = 'Loading data'; |
