From 95cc9856468f0c17e486c6bdf84520a45815bdc9 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 10 May 2022 16:57:57 +0100 Subject: [PATCH] Add new navigation settings to new apps --- packages/server/src/api/controllers/application.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/server/src/api/controllers/application.ts b/packages/server/src/api/controllers/application.ts index aa76dd403c..5d05592f32 100644 --- a/packages/server/src/api/controllers/application.ts +++ b/packages/server/src/api/controllers/application.ts @@ -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