Add new navigation settings to new apps

This commit is contained in:
Andrew Kingston 2022-05-10 16:57:57 +01:00
parent d3cfdd8a2d
commit 12f704ea7a
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