Allow deleting apps without being a global builder

This commit is contained in:
Andrew Kingston 2023-11-23 17:34:06 +00:00
parent d217053e87
commit 8f47eab2b6
1 changed files with 16 additions and 20 deletions

View File

@ -4,8 +4,6 @@
import { url, isActive } from "@roxi/routify"
import DeleteModal from "components/deploy/DeleteModal.svelte"
import { isOnlyUser } from "builderStore"
import { auth } from "stores/portal"
import { sdk } from "@budibase/shared-core"
let deleteModal
</script>
@ -46,7 +44,6 @@
url={$url("./version")}
active={$isActive("./version")}
/>
{#if sdk.users.isGlobalBuilder($auth.user)}
<div class="delete-action">
<AbsTooltip
position={TooltipPosition.Bottom}
@ -63,7 +60,6 @@
/>
</AbsTooltip>
</div>
{/if}
</SideNav>
<slot />
</Content>