Browse Source

Linting.

pull/4023/head
mike12345567 6 years ago
parent
commit
9162aa522b
  1. 5
      packages/builder/src/builderStore/store/hosting.js
  2. 4
      packages/builder/src/components/deploy/DeploymentHistory.svelte

5
packages/builder/src/builderStore/store/hosting.js

@ -10,7 +10,10 @@ export const getHostingStore = () => {
const store = writable({ ...INITIAL_BACKEND_UI_STATE }) const store = writable({ ...INITIAL_BACKEND_UI_STATE })
store.actions = { store.actions = {
fetch: async () => { fetch: async () => {
const responses = await Promise.all([api.get("/api/hosting/"), api.get("/api/hosting/urls")]) const responses = await Promise.all([
api.get("/api/hosting/"),
api.get("/api/hosting/urls"),
])
const [info, urls] = await Promise.all(responses.map(resp => resp.json())) const [info, urls] = await Promise.all(responses.map(resp => resp.json()))
store.update(state => { store.update(state => {
state.hostingInfo = info state.hostingInfo = info

4
packages/builder/src/components/deploy/DeploymentHistory.svelte

@ -96,9 +96,7 @@
<h4>Deployment History</h4> <h4>Deployment History</h4>
<div class="deploy-div"> <div class="deploy-div">
{#if deployments.some(deployment => deployment.status === DeploymentStatus.SUCCESS)} {#if deployments.some(deployment => deployment.status === DeploymentStatus.SUCCESS)}
<a target="_blank" href={deploymentUrl}> <a target="_blank" href={deploymentUrl}> View Your Deployed App → </a>
View Your Deployed App →
</a>
<Button primary on:click={() => modal.show()}>View webhooks</Button> <Button primary on:click={() => modal.show()}>View webhooks</Button>
{/if} {/if}
</div> </div>

Loading…
Cancel
Save