[pve-devel] [PATCH v2 manager 3/5] ui: backup views: add protected column

Fabian Ebner f.ebner at proxmox.com
Thu Sep 30 13:42:13 CEST 2021


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---

New in v2.

 www/manager6/grid/BackupView.js     | 6 ++++++
 www/manager6/storage/BackupView.js  | 2 +-
 www/manager6/storage/ContentView.js | 6 ++++++
 3 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/www/manager6/grid/BackupView.js b/www/manager6/grid/BackupView.js
index 8825ed96..3731c985 100644
--- a/www/manager6/grid/BackupView.js
+++ b/www/manager6/grid/BackupView.js
@@ -320,6 +320,12 @@ Ext.define('PVE.grid.BackupView', {
 		    flex: 1,
 		    renderer: Ext.htmlEncode,
 		},
+		{
+		    header: gettext('Protected'),
+		    width: 100,
+		    renderer: Proxmox.Utils.format_boolean,
+		    dataIndex: 'protected',
+		},
 		{
 		    header: gettext('Date'),
 		    width: 150,
diff --git a/www/manager6/storage/BackupView.js b/www/manager6/storage/BackupView.js
index 5fec3b18..359f5f18 100644
--- a/www/manager6/storage/BackupView.js
+++ b/www/manager6/storage/BackupView.js
@@ -3,7 +3,7 @@ Ext.define('PVE.storage.BackupView', {
 
     alias: 'widget.pveStorageBackupView',
 
-    showColumns: ['name', 'notes', 'date', 'format', 'size'],
+    showColumns: ['name', 'notes', 'protected', 'date', 'format', 'size'],
 
     initComponent: function() {
 	var me = this;
diff --git a/www/manager6/storage/ContentView.js b/www/manager6/storage/ContentView.js
index 9ba2b4ce..01249d1f 100644
--- a/www/manager6/storage/ContentView.js
+++ b/www/manager6/storage/ContentView.js
@@ -353,6 +353,12 @@ Ext.define('PVE.storage.ContentView', {
 		renderer: Ext.htmlEncode,
 		dataIndex: 'notes',
 	    },
+	    'protected': {
+		header: gettext('Protected'),
+		width: 100,
+		renderer: Proxmox.Utils.format_boolean,
+		dataIndex: 'protected',
+	    },
 	    'date': {
 		header: gettext('Date'),
 		width: 150,
-- 
2.30.2






More information about the pve-devel mailing list