diff --git a/gui/app/components/section/airtable/type-editor.js b/gui/app/components/section/airtable/type-editor.js index 00855a12..eaf47a4e 100644 --- a/gui/app/components/section/airtable/type-editor.js +++ b/gui/app/components/section/airtable/type-editor.js @@ -15,6 +15,7 @@ export default Component.extend({ data: "", didReceiveAttrs() { + this._super(); this.set("data", this.get("meta.rawBody")); }, diff --git a/gui/app/components/section/base-editor-inline.js b/gui/app/components/section/base-editor-inline.js index 218e2322..6fb390b7 100644 --- a/gui/app/components/section/base-editor-inline.js +++ b/gui/app/components/section/base-editor-inline.js @@ -34,7 +34,7 @@ export default Component.extend(Modals, Notifier, { pageTitle: '', didReceiveAttrs() { - this._super(...arguments); + this._super(); this.set('pageTitle', this.get('page.title')); }, diff --git a/gui/app/components/section/base-editor.js b/gui/app/components/section/base-editor.js index 77b5ccab..524ea425 100644 --- a/gui/app/components/section/base-editor.js +++ b/gui/app/components/section/base-editor.js @@ -21,7 +21,9 @@ export default Component.extend(ModalMixin, { hasNameError: empty('page.title'), hasDescError: empty('page.excerpt'), - didRender() { + didRender(...args) { + this._super(...args); + let self = this; Mousetrap.bind('esc', function () { self.send('onCancel'); diff --git a/gui/app/components/section/code/type-editor.js b/gui/app/components/section/code/type-editor.js index 3cbe2037..5c8b883a 100644 --- a/gui/app/components/section/code/type-editor.js +++ b/gui/app/components/section/code/type-editor.js @@ -67,7 +67,8 @@ export default Component.extend({ } }, - didInsertElement() { + didInsertElement(...args) { + this._super(...args); var editor = CodeMirror.fromTextArea(document.getElementById(this.get('editorId')), { theme: "material", lineNumbers: true, @@ -91,7 +92,8 @@ export default Component.extend({ this.set('codeEditor', editor); }, - willDestroyElement() { + willDestroyElement(...args) { + this._super(...args); let editor = this.get('codeEditor'); if (!_.isNull(editor)) { diff --git a/gui/app/components/section/flowchart/type-editor.js b/gui/app/components/section/flowchart/type-editor.js index afb899f0..6aaccf79 100644 --- a/gui/app/components/section/flowchart/type-editor.js +++ b/gui/app/components/section/flowchart/type-editor.js @@ -17,13 +17,14 @@ import Component from '@ember/component'; export default Component.extend({ appMeta: service(), sectionSvc: service('section'), + i18n: service(), isDirty: false, waiting: false, diagram: '', diagramXML: '', title: '', readyToSave: false, - previewButtonCaption: 'Preview', + previewButtonCaption: '', flowCallback: null, editorId: computed('page', function () { let page = this.get('page'); @@ -40,6 +41,8 @@ export default Component.extend({ didInsertElement() { this._super(...arguments); + this.previewButtonCaption = this.i18n.localize('preview'); + schedule('afterRender', () => { this.setupEditor(); }); @@ -125,7 +128,7 @@ export default Component.extend({ action: 'export', format: 'xmlpng', xml: this.get('diagramXML'), - spin: 'Updating' + spin: this.i18n.localize('updating') } ), '*'); }, diff --git a/gui/app/templates/components/section/airtable/type-editor.hbs b/gui/app/templates/components/section/airtable/type-editor.hbs index f20cf253..be08b01d 100644 --- a/gui/app/templates/components/section/airtable/type-editor.hbs +++ b/gui/app/templates/components/section/airtable/type-editor.hbs @@ -1,12 +1,11 @@ {{layout/logo-heading - title="Airtable" - desc="Part spreadsheet, part database, and entirely flexible (https://airtable.com)" + title=(localize 'section_airtable') + desc=(localize 'section_airtable_explain') icon=constants.Icon.Integrations}} {{#section/base-editor document=document folder=folder page=page isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}