From acf95f346eb47fd18516423a354d3caab13efa2b Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Thu, 24 Aug 2023 17:14:14 +0530 Subject: [PATCH] fix(ux): hide get started in demo - auto select demo instance on creation --- dummy/index.ts | 1 + src/pages/DatabaseSelector.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/dummy/index.ts b/dummy/index.ts index e7827bb5..4ec21694 100644 --- a/dummy/index.ts +++ b/dummy/index.ts @@ -56,6 +56,7 @@ export async function setupDummyInstance( ModelNameEnum.SystemSettings, 'instanceId' )) as string; + await fyo.singles.SystemSettings?.setAndSync('hideGetStarted', true); fyo.store.skipTelemetryLogging = false; return { companyName: options.companyName, instanceId }; diff --git a/src/pages/DatabaseSelector.vue b/src/pages/DatabaseSelector.vue index 0a33ffb9..377e1c2d 100644 --- a/src/pages/DatabaseSelector.vue +++ b/src/pages/DatabaseSelector.vue @@ -359,6 +359,7 @@ export default defineComponent({ await this.setFiles(); this.fyo.telemetry.log(Verb.Created, 'dummy-instance'); this.creatingDemo = false; + this.$emit('file-selected', filePath); }, async setFiles() { const dbList = await ipc.getDbList();