Fix Bug 49872

This commit is contained in:
Julia Radzhabova 2021-04-23 16:57:44 +03:00
parent be9918cfa3
commit be2c67be38

View file

@ -285,14 +285,19 @@ define([
return; return;
} }
this.btnChartType.setIconCls('svgicon ' + 'chart-' + rawData.iconCls); var res = this.chartSettings.changeType(rawData.type);
this.currentChartType = rawData.type; if (res) {
this.chartSettings.changeType(this.currentChartType); this.btnChartType.setIconCls('svgicon ' + 'chart-' + rawData.iconCls);
this.ShowHideSettings(this.currentChartType); this.currentChartType = rawData.type;
if (isCombo) this.ShowHideSettings(this.currentChartType);
this.updateSeriesList(this.chartSettings.getSeries()); if (isCombo)
else this.updateSeriesList(this.chartSettings.getSeries());
this.updateChartStyles(this.api.asc_getChartPreviews(this.currentChartType)); else
this.updateChartStyles(this.api.asc_getChartPreviews(this.currentChartType));
} else {
picker.selectRecord(picker.store.findWhere({type: this.currentChartType}), true);
}
}, },
updateChartStyles: function(styles) { updateChartStyles: function(styles) {