[pbs-devel] [PATCH proxmox-backup] ui: fix setting protection in namespace

Fabian Ebner f.ebner at proxmox.com
Mon May 16 15:25:02 CEST 2022


The ns parameter would not be included previously.

Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 www/datastore/Content.js | 17 +----------------
 1 file changed, 1 insertion(+), 16 deletions(-)

diff --git a/www/datastore/Content.js b/www/datastore/Content.js
index f7e1675b..21ce4964 100644
--- a/www/datastore/Content.js
+++ b/www/datastore/Content.js
@@ -685,25 +685,10 @@ Ext.define('PBS.DataStoreContent', {
 		isCreate: false,
 		autoLoad: true,
 
-		loadUrl: `${url}?${Ext.Object.toQueryString(params)}`,
 		url,
+		extraRequestParams: params,
 
 		items: [
-		    {
-			xtype: 'hidden',
-			name: 'backup-type',
-			value: type,
-		    },
-		    {
-			xtype: 'hidden',
-			name: 'backup-id',
-			value: id,
-		    },
-		    {
-			xtype: 'hidden',
-			name: 'backup-time',
-			value: time,
-		    },
 		    {
 			xtype: 'proxmoxcheckbox',
 			fieldLabel: gettext('Protected'),
-- 
2.30.2






More information about the pbs-devel mailing list