publish button
This commit is contained in:
parent
95c80f2b4a
commit
48006408f1
|
@ -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
|
||||
|
|
|
@ -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}>
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -17,7 +17,7 @@ const StaticDatabases = {
|
|||
|
||||
const AppStatus = {
|
||||
DEV: "dev",
|
||||
DEPLOYED: "deployed",
|
||||
DEPLOYED: "PUBLISHED",
|
||||
}
|
||||
|
||||
const DocumentTypes = {
|
||||
|
|
Loading…
Reference in New Issue