[pbs-devel] [PATCH proxmox-backup 4/5] ui: tape inventory: use uuid as id

Dominik Csapak d.csapak at proxmox.com
Thu Jan 11 11:40:35 CET 2024


and add it as a hidden column. This now displays all tapes even if there
are some with identical label-texts.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/tape/TapeInventory.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/www/tape/TapeInventory.js b/www/tape/TapeInventory.js
index 46dddc4a..dba36dac 100644
--- a/www/tape/TapeInventory.js
+++ b/www/tape/TapeInventory.js
@@ -17,7 +17,7 @@ Ext.define('pbs-model-tapes', {
 	'status',
 	'uuid',
     ],
-    idProperty: 'label-text',
+    idProperty: 'uuid',
     proxy: {
 	type: 'proxmox',
 	url: '/api2/json/tape/media/list',
@@ -293,5 +293,11 @@ Ext.define('PBS.TapeManagement.TapeInventory', {
 	    },
 	    flex: 1,
 	},
+	{
+	    text: gettext('UUID'),
+	    dataIndex: 'uuid',
+	    flex: 1,
+	    hidden: true,
+	},
     ],
 });
-- 
2.30.2





More information about the pbs-devel mailing list