When an user experation date is send with the /accesss/tickets POST API call, it will be stored in a global variable like the username
Signed-off-by: Philipp Hufnagl <p.hufn...@proxmox.com> --- src/Utils.js | 3 +++ src/proxmox-dark/scss/abstracts/_variables.scss | 1 + src/proxmox-dark/scss/extjs/_menu.scss | 4 ++++ 3 files changed, 8 insertions(+) diff --git a/src/Utils.js b/src/Utils.js index a7ded2a..5481a32 100644 --- a/src/Utils.js +++ b/src/Utils.js @@ -309,6 +309,9 @@ utilities: { setAuthData: function(data) { Proxmox.UserName = data.username; + if (data.user_expieres !== '') { + Proxmox.UserExpires = data.user_expieres; + } Proxmox.LoggedOut = data.LoggedOut; // creates a session cookie (expire = null) // that way the cookie gets deleted after the browser window is closed diff --git a/src/proxmox-dark/scss/abstracts/_variables.scss b/src/proxmox-dark/scss/abstracts/_variables.scss index 8bcae09..b079654 100644 --- a/src/proxmox-dark/scss/abstracts/_variables.scss +++ b/src/proxmox-dark/scss/abstracts/_variables.scss @@ -13,6 +13,7 @@ $text-color: hsl(0deg, 0%, 95%); $text-color-inactive: hsl(0deg, 0%, 60%); $icon-color: hsl(0deg, 0%, 90%); $icon-color-alt: hsl(0deg, 0%, 55%); +$text-color-warning: hsl(48deg, 100%, 50%); // Borders $border-color: hsl(0deg, 0%, 40%); diff --git a/src/proxmox-dark/scss/extjs/_menu.scss b/src/proxmox-dark/scss/extjs/_menu.scss index 2983f60..aa51260 100644 --- a/src/proxmox-dark/scss/extjs/_menu.scss +++ b/src/proxmox-dark/scss/extjs/_menu.scss @@ -33,6 +33,10 @@ color: $icon-color; } +.x-menu-item-icon-default.warning { + color: $text-color-warning; +} + // Vertical divider (e.g. in UserInfo between icons and text) .x-menu-icon-separator-default { background-color: $background-dark; -- 2.39.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel