]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: user menu: allow changing language while logged in
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 30 Oct 2020 08:46:04 +0000 (09:46 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 30 Oct 2020 08:46:04 +0000 (09:46 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/MainView.js

index 7998e53509cb93bb43a64ec142bab010cd619c92..10bc8eeb9c96d20b87270fd8c848b898e92c4eb7 100644 (file)
@@ -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',
                        },
                    ],
                },