@@ -34,6 +34,7 @@ import TopBar from "./components/TopBar.vue"
3434import Close from ' ./components/icon/Close.vue' ;
3535import { useContextMenuStore } from ' ./stores/contextMenu' ;
3636import { globalEventBus } from ' ./event_bus' ;
37+ import { useNotificationBarStore } from ' ./stores/notificationBar' ;
3738
3839const store = useMainStore ()
3940const storeFilter = useFilterStore ()
@@ -557,6 +558,10 @@ const initWs = async (): Promise<boolean> => {
557558
558559 store .initSettings = init .json !
559560
561+ if (init .json ) {
562+ useNotificationBarStore ().processNotification (init .json ?.updateVersion )
563+ }
564+
560565 let passValid = await client .sendGet (" check-pass?password=" + store .getPassword ())
561566 if (store .initSettings .authRequired && passValid .status !== 200 ) {
562567 store .modalShow = " auth"
@@ -606,10 +611,10 @@ const updateSampleLine = () => {
606611 <SettingsDrawer v-if =" store.settingsDrawer" @close =" store.settingsDrawer = false" :layout =" (store.layout as Layout)"
607612 @edit =" columnEdited" @remove =" columnRemoved" @move =" reorderColumns" @settings-update =" settingsUpdate"
608613 @update-sample-line =" updateSampleLine" :sampleLine =" sampleLine" />
609- <UpdateBar v-if =" store.notificationBar " />
614+ <UpdateBar v-if =" useNotificationBarStore().display " />
610615 <DemoBar v-if =" store.demoMode" @start =" store.demoStatus = 'started'" @stop =" store.demoStatus = 'stopped'"
611616 @mode =" changeDemoMode" @add =" addDemoData(100)" />
612- <div :class =" { 'demo': store.demoMode, 'update': store.notificationBar }" >
617+ <div :class =" { 'demo': store.demoMode, 'update': useNotificationBarStore().display }" >
613618 <div class =" top-bar" >
614619 <div class =" left" >
615620 <div class =" logo" >
@@ -636,7 +641,7 @@ const updateSampleLine = () => {
636641 <Close />
637642 </button >
638643 <span class =" search-error" v-if =" store.searchbarValid.length > 0" >Invalid search query: {{ store.searchbarValid
639- }}.
644+ }}.
640645 <br />
641646 <a href =" https://logdy.dev/docs" target =" _blank" >Visit docs</a >
642647 </span >
0 commit comments