File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 11import vuetify from '@/plugins/vuetify'
2- import settingsStore from '@/store/settings'
2+ import settingsStore , { SettingsStore } from '@/store/settings'
33
44class Settings {
55 // eslint-disable-next-line
@@ -55,16 +55,14 @@ class Settings {
5555 }
5656
5757 // eslint-disable-next-line
58- run_tour_version ( version : number ) : Promise < void > {
59- return new Promise ( ( resolve ) => {
60- const store_tour_version = settingsStore . tour_version
61- if ( version === store_tour_version ) {
62- throw new Error ( `Tour version (${ version } ) is the same as in store (${ store_tour_version } })` )
63- }
58+ async run_tour_version ( version : number ) : Promise < void > {
59+ await SettingsStore . start ( )
60+ const store_tour_version = settingsStore . tour_version
61+ if ( version === store_tour_version ) {
62+ throw new Error ( `Tour version (${ version } ) is the same as in store (${ store_tour_version } })` )
63+ }
6464
65- settingsStore . setTourVersion ( version )
66- resolve ( )
67- } )
65+ await settingsStore . setTourVersion ( version )
6866 }
6967}
7068
You can’t perform that action at this time.
0 commit comments