From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id C210976AC8 for ; Fri, 16 Jul 2021 16:21:58 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id B901C11BE7 for ; Fri, 16 Jul 2021 16:21:28 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 1651911B77 for ; Fri, 16 Jul 2021 16:21:27 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id E467C4214A for ; Fri, 16 Jul 2021 16:21:26 +0200 (CEST) From: Dominik Csapak To: pve-devel@lists.proxmox.com Date: Fri, 16 Jul 2021 16:21:26 +0200 Message-Id: <20210716142126.1216972-5-d.csapak@proxmox.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210716142126.1216972-1-d.csapak@proxmox.com> References: <20210716142126.1216972-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.572 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH manager v3 5/5] ui: remove PVE.dc.AuthEditBase window X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2021 14:21:58 -0000 this is not needed anymore since we now use Proxmox.window.AuthEditBase Signed-off-by: Dominik Csapak --- www/manager6/dc/AuthEditBase.js | 91 --------------------------------- 1 file changed, 91 deletions(-) diff --git a/www/manager6/dc/AuthEditBase.js b/www/manager6/dc/AuthEditBase.js index 996ed6a8..3c66b4bf 100644 --- a/www/manager6/dc/AuthEditBase.js +++ b/www/manager6/dc/AuthEditBase.js @@ -64,94 +64,3 @@ Ext.define('PVE.panel.AuthBase', { me.callParent(); }, }); - -Ext.define('PVE.dc.AuthEditBase', { - extend: 'Proxmox.window.Edit', - - onlineHelp: 'pveum_authentication_realms', - - isAdd: true, - - fieldDefaults: { - labelWidth: 120, - }, - - initComponent: function() { - var me = this; - - me.isCreate = !me.realm; - - if (me.isCreate) { - me.url = '/api2/extjs/access/domains'; - me.method = 'POST'; - } else { - me.url = '/api2/extjs/access/domains/' + me.realm; - me.method = 'PUT'; - } - - let authConfig = PVE.Utils.authSchema[me.authType]; - if (!authConfig) { - throw 'unknown auth type'; - } else if (!authConfig.add && me.isCreate) { - throw 'trying to add non addable realm'; - } - - me.subject = authConfig.name; - - let items; - let bodyPadding; - if (authConfig.syncipanel) { - bodyPadding = 0; - items = { - xtype: 'tabpanel', - region: 'center', - layout: 'fit', - bodyPadding: 10, - items: [ - { - title: gettext('General'), - realm: me.realm, - xtype: authConfig.ipanel, - isCreate: me.isCreate, - type: me.authType, - }, - { - title: gettext('Sync Options'), - realm: me.realm, - xtype: authConfig.syncipanel, - isCreate: me.isCreate, - type: me.authType, - }, - ], - }; - } else { - items = [{ - realm: me.realm, - xtype: authConfig.ipanel, - isCreate: me.isCreate, - type: me.authType, - }]; - } - - Ext.apply(me, { - items, - bodyPadding, - }); - - me.callParent(); - - if (!me.isCreate) { - me.load({ - success: function(response, options) { - var data = response.result.data || {}; - // just to be sure (should not happen) - if (data.type !== me.authType) { - me.close(); - throw "got wrong auth type"; - } - me.setValues(data); - }, - }); - } - }, -}); -- 2.30.2