From f8a682a873de077738517d131b8fa7c2f82b7760 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 30 Oct 2020 09:46:04 +0100 Subject: [PATCH] ui: user menu: allow changing language while logged in Signed-off-by: Thomas Lamprecht --- www/MainView.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/www/MainView.js b/www/MainView.js index 7998e535..10bc8eeb 100644 --- a/www/MainView.js +++ b/www/MainView.js @@ -236,9 +236,19 @@ Ext.define('PBS.MainView', { iconCls: 'fa fa-user', menu: [ { - reference: 'logoutButton', + iconCls: 'fa fa-language', + text: gettext('Language'), + reference: 'languageButton', + handler: () => Ext.create('Proxmox.window.LanguageEditWindow', { + cookieName: 'PBSLangCookie', + autoShow: true, + }), + }, + '-', + { iconCls: 'fa fa-sign-out', text: gettext('Logout'), + reference: 'logoutButton', }, ], },