1
0
Fork 0
mirror of synced 2024-06-29 11:31:06 +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 = {
DEV: "dev",
DEPLOYED: "deployed"
PUBLISHED: "published"
}
// fields on the user table that cannot be edited

View file

@ -37,7 +37,7 @@
<img src={Rocket} alt="Rocket flying through sky" />
<div>
<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>
</section>
<Modal bind:this={feedbackModal}>

View file

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

View file

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