Browse Source

Merge pull request #9839 from ArtemDzhereleiko/AD/bug-fix/liquid-level/na-value

Liquid level widget remove percent from label for n/a value
pull/9861/head
Igor Kulikov 3 years ago
committed by GitHub
parent
commit
b10863a981
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui-ngx/src/app/modules/home/components/widget/lib/indicator/liquid-level-widget.models.ts

2
ui-ngx/src/app/modules/home/components/widget/lib/indicator/liquid-level-widget.models.ts

@ -418,7 +418,7 @@ export const createAbsoluteLayout = (values?: {inputValue: number | string; volu
export const createPercentLayout = (value: number | string = 50, valueTextStyle: string = valueTextStyleDefaults): string => export const createPercentLayout = (value: number | string = 50, valueTextStyle: string = valueTextStyleDefaults): string =>
`<div xmlns="http://www.w3.org/1999/xhtml" style="${valueContainerStyleDefaults}"> `<div xmlns="http://www.w3.org/1999/xhtml" style="${valueContainerStyleDefaults}">
<label style="${valueTextStyle}">${value} ${CapacityUnits.percent}</label> <label style="${valueTextStyle}">${value} ${value !== 'N/A' ? CapacityUnits.percent : ''}</label>
</div>`; </div>`;
export const optionsFilter = (searchText: string): ((key: DataKey) => boolean) => export const optionsFilter = (searchText: string): ((key: DataKey) => boolean) =>

Loading…
Cancel
Save