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
parent
commit
9b412d1dd8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      ui-ngx/src/app/modules/home/components/widget/config/basic/chart/doughnut-basic-config.component.ts
  2. 2
      ui-ngx/src/app/modules/home/components/widget/lib/settings/chart/doughnut-widget-settings.component.ts

2
ui-ngx/src/app/modules/home/components/widget/config/basic/chart/doughnut-basic-config.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();
}
}
}

2
ui-ngx/src/app/modules/home/components/widget/lib/settings/chart/doughnut-widget-settings.component.ts

@ -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();
}
}
}

Loading…
Cancel
Save