1
0
Fork 0
mirror of synced 2024-09-30 17:18:14 +13:00
This commit is contained in:
mike12345567 2020-12-16 09:43:08 +00:00
parent f63466f1d1
commit eae0e678d0
2 changed files with 5 additions and 4 deletions

View file

@ -10,7 +10,10 @@ export const getHostingStore = () => {
const store = writable({ ...INITIAL_BACKEND_UI_STATE })
store.actions = {
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()))
store.update(state => {
state.hostingInfo = info

View file

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