ui: tape/ChangerStatus: hide drive-slots without assigned drives

if a user has not configured a drive for a specified driveslot of the
changer, simply hide that slot

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-04-14 14:11:22 +02:00 committed by Thomas Lamprecht
parent 384a2b4d4f
commit 23eed6755a

View File

@ -519,7 +519,11 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
let type = entry['entry-kind'];
let id = entry['entry-id'];
if (type === 'drive' && drive_entries[id] !== undefined) {
if (type === 'drive') {
if (drive_entries[id] === undefined) {
continue;
}
entry = Ext.applyIf(entry, drive_entries[id]);
valid_drives.push(drive_entries[id].name);
}