ui: user menu: allow changing language while logged in

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-10-30 09:46:04 +01:00
parent b03a19b6e8
commit f8a682a873

View File

@ -236,9 +236,19 @@ Ext.define('PBS.MainView', {
iconCls: 'fa fa-user', iconCls: 'fa fa-user',
menu: [ 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', iconCls: 'fa fa-sign-out',
text: gettext('Logout'), text: gettext('Logout'),
reference: 'logoutButton',
}, },
], ],
}, },