From 12f704ea7a6544cd52c8bcb6dc5b8831f4bda850 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