diff --git a/gui/app/components/section/frame/type-editor.js b/gui/app/components/section/frame/type-editor.js index 00855a12..3001804c 100644 --- a/gui/app/components/section/frame/type-editor.js +++ b/gui/app/components/section/frame/type-editor.js @@ -15,6 +15,8 @@ export default Component.extend({ data: "", didReceiveAttrs() { + this._super(); + this.set("data", this.get("meta.rawBody")); }, diff --git a/gui/app/components/section/gemini/type-editor.js b/gui/app/components/section/gemini/type-editor.js index 428d838f..55965fce 100644 --- a/gui/app/components/section/gemini/type-editor.js +++ b/gui/app/components/section/gemini/type-editor.js @@ -30,6 +30,8 @@ export default Component.extend(SectionMixin, { }, didReceiveAttrs() { + this._super(); + let config = {}; try { diff --git a/gui/app/components/section/markdown/type-editor.js b/gui/app/components/section/markdown/type-editor.js index c36c8aaf..1dfb2f74 100644 --- a/gui/app/components/section/markdown/type-editor.js +++ b/gui/app/components/section/markdown/type-editor.js @@ -36,11 +36,13 @@ export default Component.extend({ this.set('pageBody', body); }, - didInsertElement() { + didInsertElement(...args) { + this._super(...args); this.attachEditor(); }, - willDestroyElement() { + willDestroyElement(...args) { + this._super(...args); let editor = this.get('codeEditor'); if (this.get('editMode')) { diff --git a/gui/app/templates/components/section/frame/type-editor.hbs b/gui/app/templates/components/section/frame/type-editor.hbs index b212c825..d2670fbe 100644 --- a/gui/app/templates/components/section/frame/type-editor.hbs +++ b/gui/app/templates/components/section/frame/type-editor.hbs @@ -1,12 +1,11 @@ {{layout/logo-heading - title="IFrame" - desc="Embed an IFrame" + title=(localize 'section_iframe') + desc=(localize 'section_iframe_explain') icon=constants.Icon.Integrations}} {{#section/base-editor document=document folder=folder page=page isDirty=(action "isDirty") onCancel=(action "onCancel") onAction=(action "onAction")}}
Your Documize administrator needs to provide Jira connection details before usage.
+{{localize 'section_jira_admin'}}
{{/unless}} {{/if}} {{#if authenticated}} @@ -27,6 +27,6 @@ {{{issuesGrid}}} {{else}}Jira connector not authenticated
+{{localize 'section_jira_no_auth'}}
{{/if}} {{/section/base-editor}} diff --git a/gui/public/i18n/en-US.json b/gui/public/i18n/en-US.json index 737dc0fe..a242a8d8 100644 --- a/gui/public/i18n/en-US.json +++ b/gui/public/i18n/en-US.json @@ -20,6 +20,7 @@ "export": "Export", "exported": "Exported", "test": "Test", + "configure": "Configure", "error": "Error", "file": "File", "insert": "Insert", @@ -49,6 +50,7 @@ "share": "Share", "discard": "Discard", "continue": "Continue", + "code": "code", "signin": "Sign In", "sort": "Sort", "sort_ascending": "Ascending", @@ -292,13 +294,25 @@ "section_publish": "Publish Re-usable Content Block", "section_publish_name_explain": "Provide a short title for the reusable content block", "section_publish_desc_explain": "Short description to help others understand the reusable content block", - "section_airtable": "Airtable", "section_airtable_explain": "Part spreadsheet, part database, and entirely flexible (https://airtable.com)", "section_airtable_code": "Airtable embed code", "section_code_tip": "Concise name that describes code snippet", "section_drawio": "Draw.io", "section_drawio_explain": "For making flowcharts, process diagrams, org charts, UML, ER diagrams, network diagrams and much more (https://about.draw.io)", + "section_iframe": "iFrame", + "section_iframe_explain": "Embed an iFrame", + "section_iframe_code": "iFrame embed code", + "section_gemini": "Gemini", + "section_gemini_explain": "Gemini enterprise issue tracking and help desk software (https://www.countersoft.com)", + "section_gemini_url": "Gemini URL", + "section_gemini_url_explain": "e.g. https://helpdesk.countersoft.com", + "section_gemini_key": "API Key (from user profile)", + "section_gemini_workspace": "Workspace", + "section_jira": "Jira Software", + "section_jira_explain": "Jira provides issue tracking and agile software", + "section_jira_admin": "Your Documize Community administrator needs to provide Jira connection details before usage.", + "section_jira_no_auth": "Jira connector not authenticated", "login_cas": "Authenticating with CAS...", "login_cass_error": "CAS authentication failure",