login view: don't show save username field in quarantineview

like we had before, this is a regression from the recent oidc changes.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2025-02-27 10:37:48 +01:00 committed by Thomas Lamprecht
parent af75134834
commit 39c926d051

View File

@ -14,6 +14,9 @@ Ext.define('PMG.LoginView', {
return gettext("Login"); return gettext("Login");
} }
}, },
showSaveUser: function(get) {
return this.getView().targetview !== 'quarantineview' && !get('oidc');
},
}, },
}, },
@ -392,7 +395,7 @@ Ext.define('PMG.LoginView', {
labelWidth: 150, labelWidth: 150,
submitValue: false, submitValue: false,
bind: { bind: {
visible: "{!oidc}", visible: "{showSaveUser}",
}, },
}, },
{ {