File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
webapp/src/lib/components Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 44 import { auth , authStore } from ' $lib/stores/auth.js' ;
55 import { websocketStore } from ' $lib/stores/websocket.js' ;
66 import { themeStore } from ' $lib/stores/theme.js' ;
7+ import { eagerCache } from ' $lib/stores/eager-cache.js' ;
78 import { onMount } from ' svelte' ;
89
910 let mobileMenuOpen = false ;
1213 // WebSocket connection status
1314 $ : wsState = $websocketStore ;
1415 $ : darkMode = $themeStore ;
16+ $ : serverVersion = $eagerCache .controllerInfo ?.version || ' ' ;
1517
1618 // Close mobile menu when route changes
1719 $ : $page .url .pathname && (mobileMenuOpen = false );
232234 Logout
233235 </button >
234236 </div >
237+
238+ <!-- Version section -->
239+ {#if serverVersion }
240+ <div class =" border-t border-gray-200 dark:border-gray-600 mt-4 pt-4 px-2" >
241+ <div class =" text-xs text-gray-500 dark:text-gray-400" >
242+ <span class ="font-medium" >GARM</span > {serverVersion }
243+ </div >
244+ </div >
245+ {/if }
235246 </nav >
236247
237248 </div >
378389 Logout
379390 </button >
380391 </div >
392+
393+ <!-- Version section -->
394+ {#if serverVersion }
395+ <div class =" border-t border-gray-200 dark:border-gray-600 mt-4 pt-4 px-2" >
396+ <div class =" text-xs text-gray-500 dark:text-gray-400" >
397+ <span class ="font-medium" >GARM</span > {serverVersion }
398+ </div >
399+ </div >
400+ {/if }
381401 </nav >
382402 </div >
383403
You can’t perform that action at this time.
0 commit comments