[SSE] Fix title for chart wizard

This commit is contained in:
Julia Radzhabova
2023-11-14 19:13:43 +03:00
parent 586b7f5226
commit d7fd2726cd
4 changed files with 18 additions and 2 deletions

View File

@ -5167,9 +5167,11 @@ define([
return;
}
var seltype = me.api.asc_getCellInfo().asc_getSelectionType();
(new SSE.Views.ChartWizardDialog({
api: me.api,
props: {recommended: recommended},
isEdit: (seltype == Asc.c_oAscSelectionType.RangeChart || seltype == Asc.c_oAscSelectionType.RangeChartText),
handler: function(result, value) {
if (result == 'ok') {
me.api && me.api.asc_addChartSpace(value);

View File

@ -1208,6 +1208,7 @@ define([
api: me.api,
props: {recommended: me.api.asc_getRecommendedChartData()},
type: me._state.ChartType,
isEdit: true,
handler: function(result, value) {
if (result == 'ok') {
me.api && me.api.asc_addChartSpace(value);

View File

@ -164,7 +164,7 @@ define(['common/main/lib/view/AdvancedSettingsWindow',
'<% }); %>',
].join('');
_.extend(this.options, {
title: this.textTitle,
title: options.isEdit ? this.textTitleChange : this.textTitle,
items: groups,
contentTemplate: _.template(template)({
groups: groups,
@ -535,9 +535,10 @@ define(['common/main/lib/view/AdvancedSettingsWindow',
},
textTitle: 'Insert Chart',
textTitleChange: 'Change Chart Type',
textRecommended: 'Recommended',
txtSeriesDesc: 'Choose the chart type and axis for your data series',
textType: 'Type',
textType: 'Type',
textSeries: 'Series',
textSecondary: 'Secondary Axis',
errorSecondaryAxis: 'The selected chart type requires the secondary axis that an existing chart is using. Select another chart type.',

View File

@ -2127,6 +2127,18 @@
"SSE.Views.ChartTypeDialog.textStyle": "Style",
"SSE.Views.ChartTypeDialog.textTitle": "Chart type",
"SSE.Views.ChartTypeDialog.textType": "Type",
"SSE.Views.ChartWizardDialog.textTitle": "Insert Chart",
"SSE.Views.ChartWizardDialog.textTitleChange": "Change Chart Type",
"SSE.Views.ChartWizardDialog.textRecommended": "Recommended",
"SSE.Views.ChartWizardDialog.txtSeriesDesc": "Choose the chart type and axis for your data series",
"SSE.Views.ChartWizardDialog.textType": "Type",
"SSE.Views.ChartWizardDialog.textSeries": "Series",
"SSE.Views.ChartWizardDialog.textSecondary": "Secondary Axis",
"SSE.Views.ChartWizardDialog.errorSecondaryAxis": "The selected chart type requires the secondary axis that an existing chart is using. Select another chart type.",
"SSE.Views.ChartWizardDialog.errorComboSeries": "To create a combination chart, select at least two series of data.",
"SSE.Views.ChartWizardDialog.errorStockChart": "Incorrect row order. To build a stock chart place the data on the sheet in the following order: opening price, max price, min price, closing price.",
"SSE.Views.ChartWizardDialog.errorMaxRows": "The maximum number of data series per chart is 255.",
"SSE.Views.ChartWizardDialog.errorMaxPoints": "The maximum number of points in series per chart is 4096.",
"SSE.Views.CreatePivotDialog.textDataRange": "Source data range",
"SSE.Views.CreatePivotDialog.textDestination": "Choose where to place the table",
"SSE.Views.CreatePivotDialog.textExist": "Existing worksheet",