From 67397c762d4b351a95c00720591b5edbc8505d77 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 18 Jun 2021 14:34:26 +0300 Subject: [PATCH] [SSE] Fix icons for surface and contour chart types --- .../main/app/view/ChartTypeDialog.js | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/ChartTypeDialog.js b/apps/spreadsheeteditor/main/app/view/ChartTypeDialog.js index ba3f190ee..a7708b77c 100644 --- a/apps/spreadsheeteditor/main/app/view/ChartTypeDialog.js +++ b/apps/spreadsheeteditor/main/app/view/ChartTypeDialog.js @@ -232,8 +232,25 @@ define([ this.mnuChartTypePicker.selectRecord(record, true); if (record) { this.btnChartType.setIconCls('svgicon ' + 'chart-' + record.get('iconCls')); - } else - this.btnChartType.setIconCls('svgicon'); + } else { + var iconcls = ''; + switch (this.currentChartType) { + case Asc.c_oAscChartTypeSettings.surfaceNormal: + iconcls = 'chart-surface-normal'; + break; + case Asc.c_oAscChartTypeSettings.surfaceWireframe: + iconcls = 'chart-surface-wireframe'; + break; + case Asc.c_oAscChartTypeSettings.contourNormal: + iconcls = 'chart-contour-wireframe'; + break; + case Asc.c_oAscChartTypeSettings.contourWireframe: + iconcls = 'chart-contour-wireframe'; + break; + + } + this.btnChartType.setIconCls('svgicon ' + iconcls); + } this.seriesList.on('item:add', _.bind(this.addControls, this)); this.seriesList.on('item:change', _.bind(this.addControls, this)); this.ShowHideSettings(this.currentChartType);