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

Dietmar Maurer dietmar at proxmox.com
Fri May 14 08:49:03 CEST 2021


applied

On 4/30/21 11:46 AM, Dominik Csapak wrote:
> 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,





More information about the pbs-devel mailing list