all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] applied: [PATCH backup 1/2] ui: user edit: fix filtering out pam realm on user-add
@ 2023-03-28 16:55 Thomas Lamprecht
  2023-03-28 16:55 ` [pbs-devel] applied: [PATCH backup 2/2] ui: user edit: rework interaction of realm and view model Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Lamprecht @ 2023-03-28 16:55 UTC (permalink / raw)
  To: pbs-devel

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
---
 www/window/UserEdit.js | 23 +----------------------
 1 file changed, 1 insertion(+), 22 deletions(-)

diff --git a/www/window/UserEdit.js b/www/window/UserEdit.js
index 092ff31f..0129aeed 100644
--- a/www/window/UserEdit.js
+++ b/www/window/UserEdit.js
@@ -84,29 +84,8 @@ Ext.define('PBS.window.UserEdit', {
 		    hidden: '{!isCreate}',
 		    disabled: '{!isCreate}',
 		},
-
 		submitValue: true,
-		// Let's override the default controller so that we can
-		// remove the PAM realm. We don't want to manually add users
-		// for the PAM realm.
-		controller: {
-		    xclass: 'Ext.app.ViewController',
-
-		    init: function(view) {
-			view.store.on('load', this.onLoad, view);
-		    },
-
-		    onLoad: function(store, records, success) {
-			if (!success) {
-			    return;
-			}
-
-			let pamRecord = this.store.findRecord('realm', 'pam', 0, false, true, true);
-
-			this.store.remove(pamRecord);
-			this.setValue('pbs');
-		    },
-		},
+		storeFilter: rec => rec.data?.type !== 'pam',
 	    },
 	    {
 		xtype: 'textfield',
-- 
2.30.2





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-28 16:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-28 16:55 [pbs-devel] applied: [PATCH backup 1/2] ui: user edit: fix filtering out pam realm on user-add Thomas Lamprecht
2023-03-28 16:55 ` [pbs-devel] applied: [PATCH backup 2/2] ui: user edit: rework interaction of realm and view model Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal