From 23eed6755add973f33b0839e5fc504893ae08643 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Wed, 14 Apr 2021 14:11:22 +0200 Subject: [PATCH] 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 --- www/tape/ChangerStatus.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/tape/ChangerStatus.js b/www/tape/ChangerStatus.js index e5d143fe..ff8a436c 100644 --- a/www/tape/ChangerStatus.js +++ b/www/tape/ChangerStatus.js @@ -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); }