@@ -37,9 +37,14 @@ q-layout(view="hHh LpR lff" style="margin-top: -1px;")
3737 small AppManager
3838 small( v-text ="'v' + (appManagerVersion?.currentVersion || '0.0.0')" )
3939 small.bold /
40- span.q-mr-sm
40+ span
4141 small Orchestrator
4242 small( v-text ="'v' + (orchestratorVersion?.currentVersion || '0.0.0')" )
43+ small.bold /
44+ span
45+ small Daemon
46+ small( v-text ="'v' + (daemonVersion?.currentVersion || '0.0.0')" )
47+ div.q-pr-xs
4348 q-btn.q-px-xs (
4449 v-show ="appManagerVersion?.updateAvailable"
4550 flat stretch icon ="mdi-alert-box" color ="amber-9"
@@ -58,6 +63,15 @@ q-layout(view="hHh LpR lff" style="margin-top: -1px;")
5863 | MAJ disponible (
5964 span( v-text ="orchestratorVersion?.lastVersion || '0.0.0'" )
6065 | )
66+ q-btn.q-px-xs (
67+ v-show ="daemonVersion?.updateAvailable"
68+ flat stretch icon ="mdi-alert-box" color ="amber-9"
69+ href ="https://github.com/Libertech-FR/sesame-daemon/releases" target ="_blank"
70+ ) Daemon
71+ q-tooltip.text-body2.bg-amber-9
72+ | MAJ disponible (
73+ span( v-text ="daemonVersion?.lastVersion || '0.0.0'" )
74+ | )
6175 q-space
6276 q-btn.q-px-sm ( flat stretch icon ="mdi-help" href ="https://libertech-fr.github.io/sesame-doc/" target ="_blank" )
6377</template >
@@ -81,9 +95,25 @@ const { data: appManagerVersionRes } = await useHttp<any>('/get-update/sesame-ap
8195 current: config .appManagerVersion || ' 0.0.0' ,
8296 },
8397})
98+ const { data : daemonVersionDump } = await useHttp <any >(' /core/backends/execute' , {
99+ method: ' POST' ,
100+ query: {
101+ timeoutDiscard: true ,
102+ syncTimeout: 1000 ,
103+ },
104+ body: {
105+ action: ' DUMP_PACKAGE_CONFIG'
106+ }
107+ })
108+ const { data : daemonVersionRes } = await useHttp <any >(' /get-update/sesame-daemon' , {
109+ query: {
110+ current: daemonVersionDump ?.value ?.job ?.result ?.data [0 ]?.version || ' 0.0.0' ,
111+ },
112+ })
84113
85114const orchestratorVersion = orchestratorVersionRes .value ?.data
86115const appManagerVersion = appManagerVersionRes .value ?.data
116+ const daemonVersion = daemonVersionRes .value ?.data
87117
88118const esUrl = new URL (config .baseUrl + " /core/backends/sse" )
89119esUrl .searchParams .append (" key" , ' ' + auth .user ?.sseToken )
0 commit comments