From c6c1e0514dc446846228b142bfa8cb8afd9fa018 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 27 Feb 2024 16:30:13 +0100 Subject: [PATCH] Add tooltip --- .../_components/RemoveGroupTableRenderer.svelte | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/users/users/_components/RemoveGroupTableRenderer.svelte b/packages/builder/src/pages/builder/portal/users/users/_components/RemoveGroupTableRenderer.svelte index df25ae7d30..dcbf2d3724 100644 --- a/packages/builder/src/pages/builder/portal/users/users/_components/RemoveGroupTableRenderer.svelte +++ b/packages/builder/src/pages/builder/portal/users/users/_components/RemoveGroupTableRenderer.svelte @@ -5,6 +5,7 @@ import { sdk } from "@budibase/shared-core" export let value + export let row const groupContext = getContext("groups") @@ -12,12 +13,11 @@ e.stopPropagation() groupContext.removeGroup(value) } + + $: disabled = !sdk.users.isAdmin($auth.user) || row?.scimInfo?.isSync + $: tooltip = row?.scimInfo?.isSync && "User added to the group via your AD" -Remove - Remove -