File tree Expand file tree Collapse file tree
webapp/src/lib/components Expand file tree Collapse file tree 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 );
242244 Logout
243245 </button >
244246 </div >
247+
248+ <!-- Version section -->
249+ {#if serverVersion }
250+ <div class =" border-t border-gray-200 dark:border-gray-600 mt-4 pt-4 px-2" >
251+ <div class =" text-xs text-gray-500 dark:text-gray-400" >
252+ <span class ="font-medium" >GARM</span > {serverVersion }
253+ </div >
254+ </div >
255+ {/if }
245256 </nav >
246257
247258 </div >
388399 Logout
389400 </button >
390401 </div >
402+
403+ <!-- Version section -->
404+ {#if serverVersion }
405+ <div class =" border-t border-gray-200 dark:border-gray-600 mt-4 pt-4 px-2" >
406+ <div class =" text-xs text-gray-500 dark:text-gray-400" >
407+ <span class ="font-medium" >GARM</span > {serverVersion }
408+ </div >
409+ </div >
410+ {/if }
391411 </nav >
392412 </div >
393413
You can’t perform that action at this time.
0 commit comments