From 7ef7cd3b3027636d3519ae2c3b17be692b23befc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Sat, 5 Aug 2023 17:11:55 +0200 Subject: [PATCH] Add services toggle, fix branches dropdowns --- src/lib/stores/project-services.ts | 20 +++++++++++++++++++ .../functions/steps/gitConfiguration.svelte | 1 + .../settings/gitConfigurationModal.svelte | 15 ++++++++++---- .../settings/updateConfiguration.svelte | 15 ++++++++++---- 4 files changed, 43 insertions(+), 8 deletions(-) diff --git a/src/lib/stores/project-services.ts b/src/lib/stores/project-services.ts index 6fbe502d0..c0039387f 100644 --- a/src/lib/stores/project-services.ts +++ b/src/lib/stores/project-services.ts @@ -59,6 +59,16 @@ function createServices() { label: 'GraphQL', method: 'graphql', value: null + }, + { + label: 'VCS', + method: 'vcs', + value: null + }, + { + label: 'Proxy', + method: 'proxy', + value: null } ] }); @@ -117,6 +127,16 @@ function createServices() { label: 'GraphQL', method: 'graphql', value: project.serviceStatusForGraphql + }, + { + label: 'VCS', + method: 'vcs', + value: project.serviceStatusForVcs + }, + { + label: 'Proxy', + method: 'proxy', + value: project.serviceStatusForProxy } ]; set({ list }); diff --git a/src/lib/wizards/functions/steps/gitConfiguration.svelte b/src/lib/wizards/functions/steps/gitConfiguration.svelte index e4efeac9d..e8d8a2e4b 100644 --- a/src/lib/wizards/functions/steps/gitConfiguration.svelte +++ b/src/lib/wizards/functions/steps/gitConfiguration.svelte @@ -67,6 +67,7 @@
Last updated: {toLocaleDateTime(selectedRepo.pushedAt)}

- { + selectedBranch = event.detail.value; + }} + name="branch" options={branchesList?.branches?.map((branch) => { return { value: branch.name, label: branch.name }; - }) ?? []} - bind:value={selectedBranch} /> + }) ?? []} />
- { + selectedBranch = event.detail.value; + }} + name="branch" options={branchesList?.branches?.map((branch) => { return { value: branch.name, label: branch.name }; - }) ?? []} - bind:value={selectedBranch} /> + }) ?? []} />