@@ -35,10 +35,10 @@ q-layout(view="hHh LpR lff" style="margin-top: -1px;")
3535 q-btn( flat round icon ="mdi-close" v-close-popup )
3636 q-footer( :class ="$q.dark.isActive ? 'bg-dark' : 'bg-white'" bordered )
3737 q-bar( :class ="$q.dark.isActive ? 'bg-dark' : 'bg-white text-black'" )
38- span
39- small AppManager
40- small( v-text ="'v' + (appManagerVersion?.currentVersion || '0.0.0')" )
41- small.bold /
38+ //- span
39+ //- small AppManager
40+ //- small(v-text="'v' + (appManagerVersion?.currentVersion || '0.0.0')")
41+ //- small.bold /
4242 span
4343 small Orchestrator
4444 small( v-text ="'v' + (orchestratorVersion?.currentVersion || '0.0.0')" )
@@ -47,15 +47,15 @@ q-layout(view="hHh LpR lff" style="margin-top: -1px;")
4747 small Daemon
4848 small( v-text ="'v' + (daemonVersion?.currentVersion || '0.0.0')" )
4949 div.q-pr-xs
50- q-btn.q-px-xs (
51- v-show ="appManagerVersion?.updateAvailable"
52- flat stretch icon ="mdi-alert-box" color ="amber-9"
53- href ="https://github.com/Libertech-FR/sesame-app-manager/releases" target ="_blank"
54- ) App Manager
55- q-tooltip.text-body2.bg-amber-9
56- | MAJ disponible (
57- span( v-text ="appManagerVersion?.lastVersion || '0.0.0'" )
58- | )
50+ //- q-btn.q-px-xs(
51+ //- v-show="appManagerVersion?.updateAvailable"
52+ //- flat stretch icon="mdi-alert-box" color="amber-9"
53+ //- href="https://github.com/Libertech-FR/sesame-app-manager/releases" target="_blank"
54+ //- ) App Manager
55+ //- q-tooltip.text-body2.bg-amber-9
56+ //- | MAJ disponible (
57+ //- span(v-text="appManagerVersion?.lastVersion || '0.0.0'")
58+ //- | )
5959 q-btn.q-px-xs (
6060 v-show ="orchestratorVersion?.updateAvailable"
6161 flat stretch icon ="mdi-alert-box" color ="amber-9"
@@ -91,26 +91,26 @@ const auth = useAuth()
9191const config = useAppConfig ()
9292
9393let orchestratorVersion = ref <object | null >(null )
94- let appManagerVersion = ref <object | null >(null )
94+ // let appManagerVersion = ref<object | null>(null)
9595let daemonVersion = ref <object | null >(null )
9696
9797onMounted (async () => {
9898 if (process .env .NODE_ENV === ' development' ) {
9999 orchestratorVersion .value = { currentVersion: ' 0.0.0-dev' , lastVersion: ' 0.0.0-dev' , updateAvailable: false }
100- appManagerVersion .value = { currentVersion: ' 0.0.0-dev' , lastVersion: ' 0.0.0-dev' , updateAvailable: false }
100+ // appManagerVersion.value = { currentVersion: '0.0.0-dev', lastVersion: '0.0.0-dev', updateAvailable: false }
101101 daemonVersion .value = { currentVersion: ' 0.0.0-dev' , lastVersion: ' 0.0.0-dev' , updateAvailable: false }
102102 return
103103 }
104104
105105 const { data : orchestratorVersionRes } = await useHttp <any >(' /get-update/sesame-orchestrator' , {
106106 signal: AbortSignal .timeout (2000 ),
107107 })
108- const { data : appManagerVersionRes } = await useHttp <any >(' /get-update/sesame-app-manager' , {
109- signal: AbortSignal .timeout (2000 ),
110- query: {
111- current: config .appManagerVersion || ' 0.0.0' ,
112- },
113- })
108+ // const { data: appManagerVersionRes } = await useHttp<any>('/get-update/sesame-app-manager', {
109+ // signal: AbortSignal.timeout(2000),
110+ // query: {
111+ // current: config.appManagerVersion || '0.0.0',
112+ // },
113+ // })
114114 const { data : daemonVersionDump } = await useHttp <any >(' /core/backends/execute' , {
115115 signal: AbortSignal .timeout (2000 ),
116116 method: ' POST' ,
@@ -131,7 +131,7 @@ onMounted(async () => {
131131 },
132132 })
133133 orchestratorVersion .value = orchestratorVersionRes .value ?.data
134- appManagerVersion .value = appManagerVersionRes .value ?.data
134+ // appManagerVersion.value = appManagerVersionRes.value?.data
135135 daemonVersion .value = daemonVersionRes .value ?.data
136136})
137137
0 commit comments