[pmg-devel] [PATCH pmg-gui 4/4] login view: don't show save username field in quarantineview

Dominik Csapak d.csapak at proxmox.com
Thu Feb 27 10:37:48 CET 2025


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

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 js/LoginView.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/js/LoginView.js b/js/LoginView.js
index 20dfbb9..67940ed 100644
--- a/js/LoginView.js
+++ b/js/LoginView.js
@@ -14,6 +14,9 @@ Ext.define('PMG.LoginView', {
 		    return gettext("Login");
 		}
 	    },
+	    showSaveUser: function(get) {
+		return this.getView().targetview !== 'quarantineview' && !get('oidc');
+	    },
 	},
     },
 
@@ -392,7 +395,7 @@ Ext.define('PMG.LoginView', {
 			    labelWidth: 150,
 			    submitValue: false,
 			    bind: {
-				visible: "{!oidc}",
+				visible: "{showSaveUser}",
 			    },
 			},
 			{
-- 
2.39.5





More information about the pmg-devel mailing list