1
0
Fork 0
mirror of synced 2024-06-22 04:10:54 +12:00

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

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