1
0
Fork 0
mirror of synced 2024-07-03 05:20:32 +12:00

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 = {