mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 20:27:43 +00:00
improvement: improve role not found error display
This commit is contained in:
@@ -150,7 +150,9 @@ export const DuplicateRoleModal = ({ isOpen, onOpenChange, roleSlug }: Props) =>
|
|||||||
) : role ? (
|
) : role ? (
|
||||||
<Content role={role!} onClose={() => onOpenChange(false)} />
|
<Content role={role!} onClose={() => onOpenChange(false)} />
|
||||||
) : (
|
) : (
|
||||||
<span>Error: could not find role with slug "{roleSlug}"</span>
|
<p className="w-full text-center text-red">
|
||||||
|
Error: could not find role with slug "{roleSlug}"
|
||||||
|
</p>
|
||||||
)}
|
)}
|
||||||
</ModalContent>
|
</ModalContent>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|||||||
Reference in New Issue
Block a user