Browse Source
Merge pull request #14093 from vvlladd28/improvement/donut/show-total
Doughnut widget disabled setting legendShowTotal in total layout
pull/14099/head
Igor Kulikov
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
4 additions and
0 deletions
-
ui-ngx/src/app/modules/home/components/widget/config/basic/chart/doughnut-basic-config.component.ts
-
ui-ngx/src/app/modules/home/components/widget/lib/settings/chart/doughnut-widget-settings.component.ts
|
|
|
@ -86,9 +86,11 @@ export class DoughnutBasicConfigComponent extends LatestChartBasicConfigComponen |
|
|
|
if (totalEnabled) { |
|
|
|
latestChartWidgetConfigForm.get('totalValueFont').enable(); |
|
|
|
latestChartWidgetConfigForm.get('totalValueColor').enable(); |
|
|
|
latestChartWidgetConfigForm.get('legendShowTotal').disable(); |
|
|
|
} else { |
|
|
|
latestChartWidgetConfigForm.get('totalValueFont').disable(); |
|
|
|
latestChartWidgetConfigForm.get('totalValueColor').disable(); |
|
|
|
latestChartWidgetConfigForm.get('legendShowTotal').enable(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -69,9 +69,11 @@ export class DoughnutWidgetSettingsComponent extends LatestChartWidgetSettingsCo |
|
|
|
if (totalEnabled) { |
|
|
|
latestChartWidgetSettingsForm.get('totalValueFont').enable(); |
|
|
|
latestChartWidgetSettingsForm.get('totalValueColor').enable(); |
|
|
|
latestChartWidgetSettingsForm.get('legendShowTotal').disable(); |
|
|
|
} else { |
|
|
|
latestChartWidgetSettingsForm.get('totalValueFont').disable(); |
|
|
|
latestChartWidgetSettingsForm.get('totalValueColor').disable(); |
|
|
|
latestChartWidgetSettingsForm.get('legendShowTotal').enable(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|