From 8f47eab2b61f950101fd5d23c6731d836b9ef96a Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 23 Nov 2023 17:34:06 +0000 Subject: [PATCH] Allow deleting apps without being a global builder --- .../app/[application]/settings/_layout.svelte | 36 +++++++++---------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/packages/builder/src/pages/builder/app/[application]/settings/_layout.svelte b/packages/builder/src/pages/builder/app/[application]/settings/_layout.svelte index 801ddd1130..899b58ecf0 100644 --- a/packages/builder/src/pages/builder/app/[application]/settings/_layout.svelte +++ b/packages/builder/src/pages/builder/app/[application]/settings/_layout.svelte @@ -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 @@ -46,24 +44,22 @@ url={$url("./version")} active={$isActive("./version")} /> - {#if sdk.users.isGlobalBuilder($auth.user)} -
- - { - deleteModal.show() - }} - /> - -
- {/if} +
+ + { + deleteModal.show() + }} + /> + +