Add tooltip

This commit is contained in:
Adria Navarro 2024-02-27 16:30:13 +01:00
parent 7fb32c2f57
commit c6c1e0514d
1 changed files with 6 additions and 6 deletions

View File

@ -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"
</script>
<ActionButton
disabled={!sdk.users.isAdmin($auth.user)}
size="S"
on:click={onClick}
<ActionButton {disabled} size="S" on:click={onClick} {tooltip}
>Remove</ActionButton
>
Remove
</ActionButton>