-
-
-
-
+
+
+ {#if data.deploymentList.total}
+
+
+
+
+ {#if $tags?.length}
+
+
+
+
+ {/if}
+
+
+ {/if}
+
+
+
- {/if}
+
+
+ {#if data.deploymentList.total}
+
+ {/if}
+
+
+
+
+ {
+ toggle(e);
+ if (!hasInstallation) {
+ showConnectRepo = true;
+ } else {
+ showCreateDeployment = true;
+ }
+ }}>
+ Git
+
+ {
+ toggle(e);
+ showConnectCLI = true;
+ }}>
+ CLI
+
+ {
+ toggle(e);
+ showConnectManual = true;
+ }}>
+ Manual
+
+
+
+
+
+
+
+
{#if data.deploymentList.total}
@@ -210,5 +204,5 @@
{/if}
{#if showConnectCLI}
-
+
{/if}
diff --git a/src/routes/(console)/project-[project]/sites/site-[site]/deployments/deleteDeploymentModal.svelte b/src/routes/(console)/project-[project]/sites/site-[site]/deployments/deleteDeploymentModal.svelte
index 7447bde6e..9ac0ca240 100644
--- a/src/routes/(console)/project-[project]/sites/site-[site]/deployments/deleteDeploymentModal.svelte
+++ b/src/routes/(console)/project-[project]/sites/site-[site]/deployments/deleteDeploymentModal.svelte
@@ -1,10 +1,8 @@
@@ -90,57 +78,14 @@
-
-
-
-
- {
- e.preventDefault();
- selectedDeployment = deployment;
- showRedeploy = true;
- toggle(e);
- }}>
- Redeploy
-
- {#if deployment?.status === 'ready' && deployment?.$id !== site.deploymentId}
- {
- e.preventDefault();
- selectedDeployment = deployment;
- showActivate = true;
- toggle(e);
- }}>
- Activate
-
- {/if}
- {#if deployment?.status === 'processing' || deployment?.status === 'building' || deployment.status === 'waiting'}
- {
- e.preventDefault();
- selectedDeployment = deployment;
- showCancel = true;
- toggle(e);
- }}>
- Cancel
-
- {/if}
-
-
-
+
@@ -172,3 +117,6 @@
{#if selectedDeployment && showCancel}
{/if}
+{#if selectedDeployment && showDelete}
+
+{/if}
diff --git a/src/routes/(console)/project-[project]/sites/site-[site]/instantRollbackDomain.svelte b/src/routes/(console)/project-[project]/sites/site-[site]/instantRollbackModal.svelte
similarity index 100%
rename from src/routes/(console)/project-[project]/sites/site-[site]/instantRollbackDomain.svelte
rename to src/routes/(console)/project-[project]/sites/site-[site]/instantRollbackModal.svelte