Merge pull request #14093 from vvlladd28/improvement/donut/show-total

Doughnut widget disabled setting legendShowTotal in total layout
This commit is contained in:
Igor Kulikov 2025-10-01 18:48:57 +03:00 committed by GitHub
commit 9b412d1dd8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -86,9 +86,11 @@ export class DoughnutBasicConfigComponent extends LatestChartBasicConfigComponen
if (totalEnabled) { if (totalEnabled) {
latestChartWidgetConfigForm.get('totalValueFont').enable(); latestChartWidgetConfigForm.get('totalValueFont').enable();
latestChartWidgetConfigForm.get('totalValueColor').enable(); latestChartWidgetConfigForm.get('totalValueColor').enable();
latestChartWidgetConfigForm.get('legendShowTotal').disable();
} else { } else {
latestChartWidgetConfigForm.get('totalValueFont').disable(); latestChartWidgetConfigForm.get('totalValueFont').disable();
latestChartWidgetConfigForm.get('totalValueColor').disable(); latestChartWidgetConfigForm.get('totalValueColor').disable();
latestChartWidgetConfigForm.get('legendShowTotal').enable();
} }
} }
} }

View File

@ -69,9 +69,11 @@ export class DoughnutWidgetSettingsComponent extends LatestChartWidgetSettingsCo
if (totalEnabled) { if (totalEnabled) {
latestChartWidgetSettingsForm.get('totalValueFont').enable(); latestChartWidgetSettingsForm.get('totalValueFont').enable();
latestChartWidgetSettingsForm.get('totalValueColor').enable(); latestChartWidgetSettingsForm.get('totalValueColor').enable();
latestChartWidgetSettingsForm.get('legendShowTotal').disable();
} else { } else {
latestChartWidgetSettingsForm.get('totalValueFont').disable(); latestChartWidgetSettingsForm.get('totalValueFont').disable();
latestChartWidgetSettingsForm.get('totalValueColor').disable(); latestChartWidgetSettingsForm.get('totalValueColor').disable();
latestChartWidgetSettingsForm.get('legendShowTotal').enable();
} }
} }
} }