]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: tape: ChangerStatus fixup for empty barcode
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 30 Apr 2021 09:46:42 +0000 (11:46 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 14 May 2021 06:48:10 +0000 (08:48 +0200)
empty barcode means that label-text is '', not undefined
we forgot this line

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/tape/ChangerStatus.js

index f4bcc631abfa2bb011fb2c2dd04041a9e136e11b..51ba6ffa6897ee2a5e50edb19213113742ec545e 100644 (file)
@@ -224,7 +224,7 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
                        return `${url}/${encodeURIComponent(drive)}/${apiCall}`;
                    },
                    items: [
-                       label !== undefined ? {
+                       label !== "" ? {
                            xtype: 'displayfield',
                            name: 'label-text',
                            value: label,