diff --git a/src/pages/TemplateBuilder/TemplateBuilder.vue b/src/pages/TemplateBuilder/TemplateBuilder.vue index b9754dae..c673817b 100644 --- a/src/pages/TemplateBuilder/TemplateBuilder.vue +++ b/src/pages/TemplateBuilder/TemplateBuilder.vue @@ -42,24 +42,21 @@ class="overflow-auto no-scrollbar flex flex-col" style="height: calc(100vh - var(--h-row-largest) - 1px)" > - -
- {{ helperMessage }} -
- -+ {{ helperMessage }} +
+{{ t`Display Scale` }}
@@ -229,6 +227,7 @@ import { openSettings, selectTextFile, ShortcutKey, + showMessageDialog, showToast, } from 'src/utils/ui'; import { Shortcuts } from 'src/utils/vueUtils'; @@ -289,22 +288,14 @@ export default defineComponent({ }; }, async mounted() { - await this.setDoc(); - focusOrSelectFormControl(this.doc as Doc, this.$refs.nameField, false); + await this.initialize(); focusedDocsRef.add(this.doc); - - if (this.doc?.template == null) { - await this.doc?.set('template', baseTemplate); - } - - await this.setDisplayInitialDoc(); - if (this.fyo.store.isDevelopment) { // @ts-ignore window.tb = this; } }, - activated(): void { + async activated(): Promise