diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index baf5dbe2c..ee164a5a6 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -1888,8 +1888,12 @@ define([ this._state.clrshd_asccolor = color; } - if (selectionType == Asc.c_oAscSelectionType.RangeChart || selectionType == Asc.c_oAscSelectionType.RangeChartText) - return; + var in_chart = (selectionType == Asc.c_oAscSelectionType.RangeChart || selectionType == Asc.c_oAscSelectionType.RangeChartText); + if (in_chart !== this._state.in_chart) { + toolbar.btnInsertChart.updateHint(in_chart ? toolbar.tipChangeChart : toolbar.tipInsertChart); + this._state.in_chart = in_chart; + } + if (in_chart) return; if (!toolbar.mode.isEditDiagram) { diff --git a/apps/spreadsheeteditor/main/app/view/Toolbar.js b/apps/spreadsheeteditor/main/app/view/Toolbar.js index b41db60c1..d37743bc6 100644 --- a/apps/spreadsheeteditor/main/app/view/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/view/Toolbar.js @@ -2059,6 +2059,7 @@ define([ textTabFile: 'File', textTabHome: 'Home', textTabInsert: 'Insert', - textSurface: 'Surface' + textSurface: 'Surface', + tipChangeChart: 'Change Chart Type' }, SSE.Views.Toolbar || {})); }); \ No newline at end of file diff --git a/apps/spreadsheeteditor/main/locale/en.json b/apps/spreadsheeteditor/main/locale/en.json index 9c1eefcd6..dff40b474 100644 --- a/apps/spreadsheeteditor/main/locale/en.json +++ b/apps/spreadsheeteditor/main/locale/en.json @@ -1664,6 +1664,7 @@ "SSE.Views.Toolbar.tipBack": "Back", "SSE.Views.Toolbar.tipBorders": "Borders", "SSE.Views.Toolbar.tipCellStyle": "Cell Style", + "SSE.Views.Toolbar.tipChangeChart": "Change Chart Type", "SSE.Views.Toolbar.tipClearStyle": "Clear", "SSE.Views.Toolbar.tipColorSchemas": "Change Color Scheme", "SSE.Views.Toolbar.tipCopy": "Copy",