1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13:00

Add tooltip

This commit is contained in:
Adria Navarro 2024-02-27 16:30:13 +01:00
parent 7fb32c2f57
commit c6c1e0514d

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>