Add tooltip
This commit is contained in:
parent
7fb32c2f57
commit
c6c1e0514d
|
@ -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>
|
|
||||||
|
|
Loading…
Reference in New Issue