fix: make reassign dialog unactionable if editing owner
This commit is contained in:
parent
16a8122f85
commit
7b1340c93e
@ -18,7 +18,9 @@ export default function ReassignUser({
|
|||||||
}: ReassignProps) {
|
}: ReassignProps) {
|
||||||
return (
|
return (
|
||||||
<Dialog isOpen={isOpen} onOpenChange={setIsOpen}>
|
<Dialog isOpen={isOpen} onOpenChange={setIsOpen}>
|
||||||
<Dialog.Panel>
|
<Dialog.Panel
|
||||||
|
variant={user.headplaneRole === 'owner' ? 'unactionable' : 'normal'}
|
||||||
|
>
|
||||||
<Dialog.Title>Change role for {user.name}?</Dialog.Title>
|
<Dialog.Title>Change role for {user.name}?</Dialog.Title>
|
||||||
<Dialog.Text className="mb-6">
|
<Dialog.Text className="mb-6">
|
||||||
Most roles are carried straight from Tailscale. However, keep in mind
|
Most roles are carried straight from Tailscale. However, keep in mind
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user