Merge pull request #14093 from vvlladd28/improvement/donut/show-total
Doughnut widget disabled setting legendShowTotal in total layout
This commit is contained in:
commit
9b412d1dd8
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user