From 2da62df8730840753271681f9c1ccc424ffe0cd6 Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Mon, 29 Jun 2020 17:01:10 +0200 Subject: [PATCH 1/8] change appname to name in builderStore --- packages/builder/src/builderStore/store/index.js | 6 ++++-- packages/builder/src/components/nav/UsersList.svelte | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/builderStore/store/index.js b/packages/builder/src/builderStore/store/index.js index 11f2ed365e..351aa26a3f 100644 --- a/packages/builder/src/builderStore/store/index.js +++ b/packages/builder/src/builderStore/store/index.js @@ -29,7 +29,8 @@ import { export const getStore = () => { const initial = { apps: [], - appname: "", + name: "", + description: "", pages: DEFAULT_PAGES_OBJECT, mainUi: {}, unauthenticatedUi: {}, @@ -101,7 +102,8 @@ const setPackage = (store, initial) => async pkg => { initial.libraries = pkg.application.componentLibraries initial.components = await fetchComponentLibDefinitions(pkg.application._id) - initial.appname = pkg.application.name + initial.name = pkg.application.name + initial.description = pkg.application.description initial.appId = pkg.application._id initial.pages = pkg.pages initial.hasAppPackage = true diff --git a/packages/builder/src/components/nav/UsersList.svelte b/packages/builder/src/components/nav/UsersList.svelte index 1a755eaccb..04ebf37997 100644 --- a/packages/builder/src/components/nav/UsersList.svelte +++ b/packages/builder/src/components/nav/UsersList.svelte @@ -11,7 +11,7 @@ } $: currentAppInfo = { - appname: $store.appname, + name: $store.name, } async function fetchUsers() { From f39f913b4b7e233ed5f3a6fea0938d9f93c38e3c Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Mon, 29 Jun 2020 17:18:43 +0200 Subject: [PATCH 2/8] adds functionality to update name and description of app --- .../components/settings/tabs/General.svelte | 28 +++++++++++++++++-- .../server/src/api/controllers/application.js | 18 ++++++++++++ packages/server/src/api/routes/application.js | 1 + 3 files changed, 45 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/components/settings/tabs/General.svelte b/packages/builder/src/components/settings/tabs/General.svelte index bc0c17bc81..fbfb5f0136 100644 --- a/packages/builder/src/components/settings/tabs/General.svelte +++ b/packages/builder/src/components/settings/tabs/General.svelte @@ -1,15 +1,39 @@ General
- + updateApplication({ name: e.detail })} + thin + edit + value={$store.name} + label="Name" />
-