1
0
Fork 0
mirror of synced 2024-07-04 05:50:57 +12:00

Removed the publish check from the delete app button

This commit is contained in:
Dean 2023-06-29 10:47:47 +01:00
parent 854950581c
commit 8d98f6ac02

View file

@ -3,14 +3,8 @@
import { Page, Layout } from "@budibase/bbui"
import { url, isActive } from "@roxi/routify"
import DeleteModal from "components/deploy/DeleteModal.svelte"
import { apps } from "stores/portal"
import { store } from "builderStore"
let deleteModal
$: filteredApps = $apps.filter(app => app.devId === $store.appId)
$: selectedApp = filteredApps?.length ? filteredApps[0] : null
$: isPublished = selectedApp?.status === "published"
</script>
<!-- routify:options index=4 -->
@ -49,16 +43,14 @@
url={$url("./version")}
active={$isActive("./version")}
/>
{#if !isPublished}
<div class="delete-action">
<SideNavItem
text="Delete app"
on:click={() => {
deleteModal.show()
}}
/>
</div>
{/if}
<div class="delete-action">
<SideNavItem
text="Delete app"
on:click={() => {
deleteModal.show()
}}
/>
</div>
</SideNav>
<slot />
</Content>