2
0
mirror of https://github.com/frappe/books.git synced 2024-05-30 15:20:49 +00:00

fix(ux): hide get started in demo

- auto select demo instance on creation
This commit is contained in:
18alantom 2023-08-24 17:14:14 +05:30
parent d485bf46d7
commit acf95f346e
2 changed files with 2 additions and 0 deletions

View File

@ -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 };

View File

@ -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();