From 9a4de82b565eb30caefe8fed3835825c04c347b9 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 26 Apr 2022 15:20:30 +0300 Subject: [PATCH] Fix Bug 53892 --- apps/documenteditor/main/app/view/FormsTab.js | 10 ++++++---- apps/documenteditor/main/locale/en.json | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/documenteditor/main/app/view/FormsTab.js b/apps/documenteditor/main/app/view/FormsTab.js index 9498a7b43..b6c2d3f5d 100644 --- a/apps/documenteditor/main/app/view/FormsTab.js +++ b/apps/documenteditor/main/app/view/FormsTab.js @@ -308,7 +308,7 @@ define([ cls: 'btn-toolbar x-huge icon-top', lock: [_set.lostConnect, _set.disableOnStart], iconCls: 'toolbar__icon save-form', - caption: this.capBtnSaveForm, + caption: this.appConfig.canRequestSaveAs || !!this.appConfig.saveAsUrl ? this.capBtnSaveForm : this.capBtnDownloadForm, // disabled: this.appConfig.isEdit && this.appConfig.canFeatureContentControl && this.appConfig.canFeatureForms, // disable only for edit mode, dataHint: '1', dataHintDirection: 'bottom', @@ -356,7 +356,7 @@ define([ me.btnPrevForm.updateHint(me.tipPrevForm); me.btnNextForm.updateHint(me.tipNextForm); me.btnSubmit && me.btnSubmit.updateHint(me.tipSubmit); - me.btnSaveForm && me.btnSaveForm.updateHint(me.tipSaveForm); + me.btnSaveForm && me.btnSaveForm.updateHint(config.canRequestSaveAs || !!config.saveAsUrl ? me.tipSaveForm : me.tipDownloadForm); setEvents.call(me); }); @@ -438,11 +438,13 @@ define([ tipSubmit: 'Submit form', textSubmited: 'Form submitted successfully', textRequired: 'Fill all required fields to send form.', - capBtnSaveForm: 'Save as a Form', + capBtnSaveForm: 'Save as oform', tipSaveForm: 'Save a file as a fillable OFORM document', txtUntitled: 'Untitled', textCreateForm: 'Add fields and create a fillable OFORM document', - textGotIt: 'Got it' + textGotIt: 'Got it', + capBtnDownloadForm: 'Download as oform', + tipDownloadForm: 'Download a file as a fillable OFORM document' } }()), DE.Views.FormsTab || {})); }); \ No newline at end of file diff --git a/apps/documenteditor/main/locale/en.json b/apps/documenteditor/main/locale/en.json index 715124b96..dd174ddf3 100644 --- a/apps/documenteditor/main/locale/en.json +++ b/apps/documenteditor/main/locale/en.json @@ -1851,6 +1851,7 @@ "DE.Views.FormsTab.capBtnPrev": "Previous Field", "DE.Views.FormsTab.capBtnRadioBox": "Radio Button", "DE.Views.FormsTab.capBtnSaveForm": "Save as oform", + "DE.Views.FormsTab.capBtnDownloadForm": "Download as oform", "DE.Views.FormsTab.capBtnSubmit": "Submit", "DE.Views.FormsTab.capBtnText": "Text Field", "DE.Views.FormsTab.capBtnView": "View Form", @@ -1870,6 +1871,7 @@ "DE.Views.FormsTab.tipPrevForm": "Go to the previous field", "DE.Views.FormsTab.tipRadioBox": "Insert radio button", "DE.Views.FormsTab.tipSaveForm": "Save a file as a fillable OFORM document", + "DE.Views.FormsTab.tipDownloadForm": "Download a file as a fillable OFORM document", "DE.Views.FormsTab.tipSubmit": "Submit form", "DE.Views.FormsTab.tipTextField": "Insert text field", "DE.Views.FormsTab.tipViewForm": "View form",