publish button

This commit is contained in:
Martin McKeaveney 2021-05-13 17:33:31 +01:00
parent 95c80f2b4a
commit 48006408f1
4 changed files with 7 additions and 7 deletions

View File

@ -11,7 +11,7 @@ export const FrontendTypes = {
export const AppStatus = { export const AppStatus = {
DEV: "dev", DEV: "dev",
DEPLOYED: "deployed" PUBLISHED: "published"
} }
// fields on the user table that cannot be edited // fields on the user table that cannot be edited

View File

@ -37,7 +37,7 @@
<img src={Rocket} alt="Rocket flying through sky" /> <img src={Rocket} alt="Rocket flying through sky" />
<div> <div>
<Heading size="M">It's time to shine!</Heading> <Heading size="M">It's time to shine!</Heading>
<Button size="XL" cta medium on:click={deployApp}>Deploy App</Button> <Button size="XL" cta medium on:click={deployApp}>Publish App</Button>
</div> </div>
</section> </section>
<Modal bind:this={feedbackModal}> <Modal bind:this={feedbackModal}>

View File

@ -26,7 +26,7 @@
import { AppStatus } from "constants" import { AppStatus } from "constants"
let layout = "grid" let layout = "grid"
let appStatus = "deployed" let appStatus = AppStatus.PUBLISHED
let template let template
let appToDelete let appToDelete
let creationModal let creationModal
@ -132,8 +132,8 @@
<Select <Select
bind:value={appStatus} bind:value={appStatus}
options={[ options={[
{ label: "Deployed", value: "deployed" }, { label: "Published", value: AppStatus.PUBLISHED },
{ label: "In Development", value: "dev" }, { label: "In Development", value: AppStatus.DEV },
]} ]}
/> />
</div> </div>
@ -160,7 +160,7 @@
{#each $apps as app, idx (app._id)} {#each $apps as app, idx (app._id)}
<svelte:component <svelte:component
this={layout === "grid" ? AppCard : AppRow} this={layout === "grid" ? AppCard : AppRow}
deletable={appStatus === AppStatus.DEPLOYED} deletable={appStatus === AppStatus.PUBLISHED}
{releaseLock} {releaseLock}
{app} {app}
{openApp} {openApp}

View File

@ -17,7 +17,7 @@ const StaticDatabases = {
const AppStatus = { const AppStatus = {
DEV: "dev", DEV: "dev",
DEPLOYED: "deployed", DEPLOYED: "PUBLISHED",
} }
const DocumentTypes = { const DocumentTypes = {