diff --git a/src/lib/components/repositories.svelte b/src/lib/components/repositories.svelte
index 46152bc57..329e3a629 100644
--- a/src/lib/components/repositories.svelte
+++ b/src/lib/components/repositories.svelte
@@ -18,19 +18,32 @@
export let selectedRepository: string = null;
export let hasInstallations = false;
export let action: 'button' | 'select' = 'select';
+ export let installationList = $installations;
$: {
- hasInstallations = $installations?.total > 0;
+ hasInstallations = installationList?.total > 0;
}
let selectedInstallation = null;
async function loadInstallations() {
- const { installations } = await sdk.forProject.vcs.listInstallations();
- if (installations.length) {
- selectedInstallation = installations[0].$id;
- installation.set(installations.find((entry) => entry.$id === selectedInstallation));
+ if (installationList) {
+ if (installationList.installations.length) {
+ selectedInstallation = installationList.installations[0].$id;
+ installation.set(
+ installationList.installations.find(
+ (entry) => entry.$id === selectedInstallation
+ )
+ );
+ }
+ return installationList.installations;
+ } else {
+ const { installations } = await sdk.forProject.vcs.listInstallations();
+ if (installations.length) {
+ selectedInstallation = installations[0].$id;
+ installation.set(installations.find((entry) => entry.$id === selectedInstallation));
+ }
+ return installations;
}
- return installations;
}
let search = '';
diff --git a/src/routes/(console)/project-[project]/sites/site-[site]/deployments/+page.svelte b/src/routes/(console)/project-[project]/sites/site-[site]/deployments/+page.svelte
index 7001737f0..372c25f42 100644
--- a/src/routes/(console)/project-[project]/sites/site-[site]/deployments/+page.svelte
+++ b/src/routes/(console)/project-[project]/sites/site-[site]/deployments/+page.svelte
@@ -1,9 +1,9 @@
Deployment ID Status Build time
- {calculateTime(deployment.buildTime)}
- Total size
- {totalSize.value + totalSize.unit}
- Build size: ${buildSize.value + buildSize.unit}
+
+
- {:else if data?.query}
-
-
Updated
-
-
Source
-Domains
-