diff --git a/saltgui/static/scripts/panels/Login.js b/saltgui/static/scripts/panels/Login.js index 325ede54d..ce7f0592f 100644 --- a/saltgui/static/scripts/panels/Login.js +++ b/saltgui/static/scripts/panels/Login.js @@ -8,6 +8,8 @@ import {Utils} from "../Utils.js"; export class LoginPanel extends Panel { constructor () { + LoginPanel.version = "SaltGUI v1.31.0-snapshot"; + super("login"); this.addTitle("SaltGUI"); @@ -66,7 +68,7 @@ export class LoginPanel extends Panel { img.src = "static/images/github.png"; aa.append(img); - const txt = document.createTextNode("SaltGUI v1.30.0-snapshot"); + const txt = document.createTextNode(LoginPanel.version); aa.append(txt); form.append(aa); diff --git a/saltgui/static/scripts/panels/Options.js b/saltgui/static/scripts/panels/Options.js index 119aeb36a..a9c693508 100644 --- a/saltgui/static/scripts/panels/Options.js +++ b/saltgui/static/scripts/panels/Options.js @@ -1,6 +1,7 @@ /* global */ import {Character} from "../Character.js"; +import {LoginPanel} from "../panels/Login.js"; import {Output} from "../output/Output.js"; import {OutputYaml} from "../output/OutputYaml.js"; import {Panel} from "./Panel.js"; @@ -27,6 +28,7 @@ export class OptionsPanel extends Panel { this.addTable(["Name", "Value"]); this.options = [ + ["saltgui", "version"], ["eauth", "session"], ["user", "session"], ["token", "session"], @@ -285,7 +287,9 @@ export class OptionsPanel extends Panel { const valuesArr = option[3]; let value; - if (category === "session") { + if (category === "version") { + value = LoginPanel.version; + } else if (category === "session") { value = loginResponse[name]; } else if (category === null) { value = Utils.getStorageItem("session", name.replace(/-/g, "_"));