[pbs-devel] [PATCH proxmox-backup] ui: tape: ChangerStatus fixup for empty barcode

Dominik Csapak d.csapak at proxmox.com
Fri Apr 30 11:46:42 CEST 2021


empty barcode means that label-text is '', not undefined
we forgot this line

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

diff --git a/www/tape/ChangerStatus.js b/www/tape/ChangerStatus.js
index f4bcc631..51ba6ffa 100644
--- a/www/tape/ChangerStatus.js
+++ b/www/tape/ChangerStatus.js
@@ -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,
-- 
2.20.1






More information about the pbs-devel mailing list