Add new navigation settings to new apps

This commit is contained in:
Andrew Kingston 2022-05-10 16:57:57 +01:00
parent c8d454c9d9
commit 95cc985646
1 changed files with 7 additions and 0 deletions

View File

@ -272,6 +272,13 @@ const performAppCreate = async (ctx: any) => {
updatedAt: new Date().toISOString(),
createdAt: new Date().toISOString(),
status: AppStatus.DEV,
navigation: {
navigation: "Top",
title: name,
navWidth: "Large",
navBackground: "var(--spectrum-global-color-gray-50)",
},
theme: "spectrum--light",
}
const response = await db.put(newApplication, { force: true })
newApplication._rev = response.rev