mirror of
https://github.com/tale/headplane.git
synced 2026-08-09 21:49:23 +00:00
fix: make reassign dialog unactionable if editing owner
This commit is contained in:
@@ -18,7 +18,9 @@ export default function ReassignUser({
|
||||
}: ReassignProps) {
|
||||
return (
|
||||
<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.Text className="mb-6">
|
||||
Most roles are carried straight from Tailscale. However, keep in mind
|
||||
|
||||
Reference in New Issue
Block a user