File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
saltgui/static/scripts/panels Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ import {Utils} from "../Utils.js";
88export class LoginPanel extends Panel {
99
1010 constructor ( ) {
11+ LoginPanel . version = "SaltGUI v1.30.0-snapshot" ;
12+
1113 super ( "login" ) ;
1214
1315 this . addTitle ( "SaltGUI" ) ;
@@ -66,7 +68,7 @@ export class LoginPanel extends Panel {
6668 img . src = "static/images/github.png" ;
6769 aa . append ( img ) ;
6870
69- const txt = document . createTextNode ( "SaltGUI v1.30.0-snapshot" ) ;
71+ const txt = document . createTextNode ( LoginPanel . version ) ;
7072 aa . append ( txt ) ;
7173
7274 form . append ( aa ) ;
Original file line number Diff line number Diff line change 11/* global */
22
33import { Character } from "../Character.js" ;
4+ import { LoginPanel } from "../panels/Login.js" ;
45import { Output } from "../output/Output.js" ;
56import { OutputYaml } from "../output/OutputYaml.js" ;
67import { Panel } from "./Panel.js" ;
@@ -27,6 +28,7 @@ export class OptionsPanel extends Panel {
2728 this . addTable ( [ "Name" , "Value" ] ) ;
2829
2930 this . options = [
31+ [ "saltgui" , "version" ] ,
3032 [ "eauth" , "session" ] ,
3133 [ "user" , "session" ] ,
3234 [ "token" , "session" ] ,
@@ -285,7 +287,9 @@ export class OptionsPanel extends Panel {
285287 const valuesArr = option [ 3 ] ;
286288
287289 let value ;
288- if ( category === "session" ) {
290+ if ( category === "version" ) {
291+ value = LoginPanel . version ;
292+ } else if ( category === "session" ) {
289293 value = loginResponse [ name ] ;
290294 } else if ( category === null ) {
291295 value = Utils . getStorageItem ( "session" , name . replace ( / - / g, "_" ) ) ;
You can’t perform that action at this time.
0 commit comments