all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] applied: [PATCH backup 1/2] ui: user edit: fix filtering out pam realm on user-add
Date: Tue, 28 Mar 2023 18:55:14 +0200	[thread overview]
Message-ID: <20230328165515.296403-1-t.lamprecht@proxmox.com> (raw)

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





             reply	other threads:[~2023-03-28 16:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-28 16:55 Thomas Lamprecht [this message]
2023-03-28 16:55 ` [pbs-devel] applied: [PATCH backup 2/2] ui: user edit: rework interaction of realm and view model Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230328165515.296403-1-t.lamprecht@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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