+
diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/settings/indicator/liquid-level-card-widget-settings.component.ts b/ui-ngx/src/app/modules/home/components/widget/lib/settings/indicator/liquid-level-card-widget-settings.component.ts
index 5ed3bea446..e25e02d1b7 100644
--- a/ui-ngx/src/app/modules/home/components/widget/lib/settings/indicator/liquid-level-card-widget-settings.component.ts
+++ b/ui-ngx/src/app/modules/home/components/widget/lib/settings/indicator/liquid-level-card-widget-settings.component.ts
@@ -158,7 +158,9 @@ export class LiquidLevelCardWidgetSettingsComponent extends WidgetSettingsCompon
volumeSource: [settings.volumeSource, []],
volumeConstant: [settings.volumeConstant, [Validators.required, Validators.min(0.1)]],
volumeAttributeName: [settings.volumeAttributeName, [Validators.required]],
+ volumeUnitsSource: [settings.volumeUnitsSource, []],
volumeUnits: [settings.volumeUnits, [Validators.required]],
+ volumeUnitsAttributeName: [settings.volumeUnitsAttributeName, [Validators.required]],
volumeFont: [settings.volumeFont, []],
volumeColor: [settings.volumeColor, []],
valueFont: [settings.valueFont, []],
@@ -195,7 +197,7 @@ export class LiquidLevelCardWidgetSettingsComponent extends WidgetSettingsCompon
protected validatorTriggers(): string[] {
return [
'showBackgroundOverlay', 'showTooltip', 'showTooltipLevel', 'tankSelectionType', 'datasourceUnits',
- 'showTooltipDate', 'layout', 'volumeSource', 'widgetUnitsSource'
+ 'showTooltipDate', 'layout', 'volumeSource', 'widgetUnitsSource', 'volumeUnitsSource'
];
}
diff --git a/ui-ngx/src/assets/locale/locale.constant-en_US.json b/ui-ngx/src/assets/locale/locale.constant-en_US.json
index 2c7784a6f9..0721aba093 100644
--- a/ui-ngx/src/assets/locale/locale.constant-en_US.json
+++ b/ui-ngx/src/assets/locale/locale.constant-en_US.json
@@ -6361,6 +6361,7 @@
"layout": "Layout",
"background-overlay": "Value background overlay",
"total-volume": "Total volume",
+ "total-volume-units": "Total volume units",
"tank": "Tank",
"shape": "Shape",
"datasource-units": "Source units",
diff --git a/ui-ngx/src/form.scss b/ui-ngx/src/form.scss
index 635d330572..ab018a8bc6 100644
--- a/ui-ngx/src/form.scss
+++ b/ui-ngx/src/form.scss
@@ -233,6 +233,36 @@
}
}
+ .tb-flex {
+ display: flex;
+ flex: 1;
+ gap: 8px;
+ &.row {
+ flex-direction: row;
+ }
+ &.column {
+ flex-direction: column;
+ }
+ &.flex-start {
+ justify-content: flex-start;
+ }
+ &.flex-end {
+ justify-content: flex-end;
+ }
+ &.space-between {
+ justify-content: space-between;
+ }
+ &.align-center {
+ align-items: center;
+ }
+ &.no-gap {
+ gap: 0;
+ }
+ &.fill-width {
+ width: 100%;
+ }
+ }
+
.tb-form-panel, .tb-form-row {
.mat-slide {
margin: 0;