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" import { sdk } from "@budibase/shared-core"
export let value export let value
export let row
const groupContext = getContext("groups") const groupContext = getContext("groups")
@ -12,12 +13,11 @@
e.stopPropagation() e.stopPropagation()
groupContext.removeGroup(value) 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> </script>
<ActionButton <ActionButton {disabled} size="S" on:click={onClick} {tooltip}
disabled={!sdk.users.isAdmin($auth.user)} >Remove</ActionButton
size="S"
on:click={onClick}
> >
Remove
</ActionButton>