You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2026/05/27 09:00:19 UTC
(streampipes) branch dev updated: fix: Make display name of gauge optional (#4503)
This is an automated email from the ASF dual-hosted git repository.
dominikriemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new 9fd12c4818 fix: Make display name of gauge optional (#4503)
9fd12c4818 is described below
commit 9fd12c481855325076911465d8dc6d9c4700c198
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Wed May 27 11:00:14 2026 +0200
fix: Make display name of gauge optional (#4503)
---
.../charts/gauge/config/gauge-widget-config.component.ts | 12 ++++--------
.../components/charts/gauge/gauge-renderer.service.ts | 2 +-
2 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/ui/src/app/chart-shared/components/charts/gauge/config/gauge-widget-config.component.ts b/ui/src/app/chart-shared/components/charts/gauge/config/gauge-widget-config.component.ts
index 5caf7bc0d1..5fc0916abc 100644
--- a/ui/src/app/chart-shared/components/charts/gauge/config/gauge-widget-config.component.ts
+++ b/ui/src/app/chart-shared/components/charts/gauge/config/gauge-widget-config.component.ts
@@ -65,15 +65,11 @@ export class GaugeWidgetConfigComponent extends BaseWidgetConfig<
this.fieldProvider.numericFields,
() => this.fieldProvider.numericFields[0],
);
- const defaultDisplayName =
- config.selectedProperty?.runtimeName ||
- config.selectedProperty?.fullDbName ||
- '';
if (typeof config.displayName !== 'string') {
- config.displayName = defaultDisplayName;
- }
- if (!config.displayName?.trim()) {
- config.displayName = defaultDisplayName;
+ config.displayName =
+ config.selectedProperty?.runtimeName ||
+ config.selectedProperty?.fullDbName ||
+ '';
}
config.min ??= 0;
config.max ??= 100;
diff --git a/ui/src/app/chart-shared/components/charts/gauge/gauge-renderer.service.ts b/ui/src/app/chart-shared/components/charts/gauge/gauge-renderer.service.ts
index 745c5629fd..b833ceba59 100644
--- a/ui/src/app/chart-shared/components/charts/gauge/gauge-renderer.service.ts
+++ b/ui/src/app/chart-shared/components/charts/gauge/gauge-renderer.service.ts
@@ -317,7 +317,7 @@ export class SpGaugeRendererService implements SpEchartsRenderer<GaugeWidgetMode
}
private makeDisplayName(displayName: unknown, fallback: string): string {
- if (typeof displayName === 'string' && displayName.trim().length > 0) {
+ if (typeof displayName === 'string') {
return displayName;
}