ui: tape inventory: use uuid as id

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@proxmox.com>
This commit is contained in:
Dominik Csapak 2024-01-11 11:40:35 +01:00 committed by Dietmar Maurer
parent 3bf382f411
commit ee347f69ae

View File

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