-
-
+ {#if repository === false}
+
+
+ Git settings
+
+
+
+
+ Loading repository...
- {:else}
-
-
-
-
-
-
-
-
+
+ {:else}
+
+
+ Git settings
+ {#if !repository}
+ NOT CONNECTED
+ {/if}
+
+ {#if repository}
+
+
+
+
+
+
+
{repository.name}
+
Last updated: {toLocaleDateTime(repository.pushedAt)}
+
+
+
+
+ {
+ selectedBranch = event.detail.value;
+ }}
+ name="branch"
+ options={branchesList?.branches?.map((branch) => {
+ return {
+ value: branch.name,
+ label: branch.name
+ };
+ }) ?? []} />
+
+
+
+
+
+
+
-
-
- {/if}
-
+ {:else}
+
+
+
+
+
+
+ {/if}
+
+ {/if}
Build settings
diff --git a/src/routes/console/project-[project]/settings/updateInstallations.svelte b/src/routes/console/project-[project]/settings/updateInstallations.svelte
index da965253c..e19da66d7 100644
--- a/src/routes/console/project-[project]/settings/updateInstallations.svelte
+++ b/src/routes/console/project-[project]/settings/updateInstallations.svelte
@@ -37,12 +37,6 @@
let showInstallationDropdown: boolean[] = [];
let selectedInstallation: Models.Installation;
- enum ProviderNames {
- github = 'GitHub',
- gitlab = 'GitLab',
- bitBucket = 'BitBucket'
- }
-
function getInstallationLink(installation: Models.Installation) {
switch (installation.provider) {
case 'github':
@@ -153,7 +147,7 @@
on:click={() => {
showInstallationDropdown[i] = false;
}}>
- Configure {ProviderNames[installation.provider]}
+ Configure