From adc701171f40da44622557f31869e822e7fd1388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Tue, 18 May 2021 12:22:35 +0200 Subject: [PATCH] prettier format --- .../src/components/deploy/DeployModal.svelte | 40 ++++++++++--------- .../src/components/deploy/RevertModal.svelte | 28 ++++++++----- .../builder/app/[application]/_layout.svelte | 15 ++++++- .../pages/builder/portal/apps/index.svelte | 6 ++- 4 files changed, 55 insertions(+), 34 deletions(-) diff --git a/packages/builder/src/components/deploy/DeployModal.svelte b/packages/builder/src/components/deploy/DeployModal.svelte index 5fffa4cd55..48a958dd4b 100644 --- a/packages/builder/src/components/deploy/DeployModal.svelte +++ b/packages/builder/src/components/deploy/DeployModal.svelte @@ -14,7 +14,6 @@ const POLL_INTERVAL = 1000 - let loading = false let feedbackModal let deployments = [] @@ -63,7 +62,10 @@ // Required to check any updated deployment statuses between polls function checkIncomingDeploymentStatus(current, incoming) { for (let incomingDeployment of incoming) { - if (incomingDeployment.status === DeploymentStatus.FAILURE || incomingDeployment.status === DeploymentStatus.SUCCESS) { + if ( + incomingDeployment.status === DeploymentStatus.FAILURE || + incomingDeployment.status === DeploymentStatus.SUCCESS + ) { const currentDeployment = current.find( deployment => deployment._id === incomingDeployment._id ) @@ -76,14 +78,17 @@ if (incomingDeployment.status === DeploymentStatus.FAILURE) { notifications.error(incomingDeployment.err) } else { - notifications.send("Published to Production.", "success", "CheckmarkCircle") + notifications.send( + "Published to Production.", + "success", + "CheckmarkCircle" + ) } } - } + } } } - onMount(() => { fetchDeployments() poll = setInterval(fetchDeployments, POLL_INTERVAL) @@ -92,19 +97,16 @@ onDestroy(() => clearInterval(poll)) - - + - - The changes you have made will be published to the production version of the application. - + + The changes you have made will be published to the production version of + the application. + diff --git a/packages/builder/src/components/deploy/RevertModal.svelte b/packages/builder/src/components/deploy/RevertModal.svelte index c35fbd36c2..d10aa95acf 100644 --- a/packages/builder/src/components/deploy/RevertModal.svelte +++ b/packages/builder/src/components/deploy/RevertModal.svelte @@ -1,6 +1,12 @@ - - - The changes you have made will be deleted and the application reverted back to its production state. - + + The changes you have made will be deleted and the application reverted + back to its production state. + diff --git a/packages/builder/src/pages/builder/app/[application]/_layout.svelte b/packages/builder/src/pages/builder/app/[application]/_layout.svelte index ba4181c6cc..53d6e17130 100644 --- a/packages/builder/src/pages/builder/app/[application]/_layout.svelte +++ b/packages/builder/src/pages/builder/app/[application]/_layout.svelte @@ -1,7 +1,16 @@