From 126ff5e71654c58ce49fb50394cb2ef09527c426 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 30 Nov 2021 14:12:25 +0300 Subject: [PATCH] [DE forms] Change name of the Download button --- .../forms/app/controller/ApplicationController.js | 6 ++++++ apps/documenteditor/forms/locale/en.json | 2 ++ 2 files changed, 8 insertions(+) diff --git a/apps/documenteditor/forms/app/controller/ApplicationController.js b/apps/documenteditor/forms/app/controller/ApplicationController.js index 198f8912c..227c64f83 100644 --- a/apps/documenteditor/forms/app/controller/ApplicationController.js +++ b/apps/documenteditor/forms/app/controller/ApplicationController.js @@ -535,6 +535,10 @@ define([ var me = this; me.view.btnSubmit.setVisible(this.appOptions.canFillForms && this.appOptions.canSubmitForms); me.view.btnDownload.setVisible(this.appOptions.canDownload && this.appOptions.canFillForms && !this.appOptions.canSubmitForms); + if (me.appOptions.canRequestSaveAs || !!me.appOptions.saveAsUrl) { + me.view.btnDownload.setCaption(me.textSaveAs); + me.view.btnDownload.updateHint(me.textTipSaveAs); + } if (!this.appOptions.canFillForms) { me.view.btnPrev.setVisible(false); me.view.btnNext.setVisible(false); @@ -1776,6 +1780,8 @@ define([ errorSessionToken: 'The connection to the server has been interrupted. Please reload the page.', errorBadImageUrl: 'Image url is incorrect', errorDataEncrypted: 'Encrypted changes have been received, they cannot be deciphered.', + textSaveAs: 'Save as', + textTipSaveAs: 'Save as pdf' }, DE.Controllers.ApplicationController)); diff --git a/apps/documenteditor/forms/locale/en.json b/apps/documenteditor/forms/locale/en.json index 5a344dff3..231b23dd9 100644 --- a/apps/documenteditor/forms/locale/en.json +++ b/apps/documenteditor/forms/locale/en.json @@ -139,6 +139,8 @@ "DE.Controllers.ApplicationController.errorSessionToken": "The connection to the server has been interrupted. Please reload the page.", "DE.Controllers.ApplicationController.errorBadImageUrl": "Image URL is incorrect", "DE.Controllers.ApplicationController.errorDataEncrypted": "Encrypted changes have been received, they cannot be deciphered.", + "DE.Controllers.ApplicationController.textSaveAs": "Save as", + "DE.Controllers.ApplicationController.textTipSaveAs": "Save as pdf", "DE.Views.ApplicationView.textClear": "Clear All Fields", "DE.Views.ApplicationView.textCopy": "Copy", "DE.Views.ApplicationView.textCut": "Cut",