Skip to content

Commit

Permalink
Removed for now till fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelUnkey committed Oct 22, 2024
1 parent 34831dc commit 7332f9e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ export const CreateNewRole: React.FC<Props> = ({ trigger, permissions }) => {
<DialogTitle>Create a new role</DialogTitle>
<DialogDescription>Roles group permissions together.</DialogDescription>
</DialogHeader>

<Form {...form}>
<form onSubmit={form.handleSubmit(onSubmit)} className="flex flex-col gap-8">
<FormField
Expand Down Expand Up @@ -143,7 +142,8 @@ export const CreateNewRole: React.FC<Props> = ({ trigger, permissions }) => {
</FormItem>
)}
/>
{permissions && permissions.length > 0 ? (
{/* Broken Have to link permissions on next page after creation */}
{/*{permissions && permissions.length > 0 ? (
<FormField
control={form.control}
name="permissionOptions"
Expand Down Expand Up @@ -172,7 +172,7 @@ export const CreateNewRole: React.FC<Props> = ({ trigger, permissions }) => {
</FormItem>
)}
/>
) : null}
) : null}*/}
<DialogFooter>
<Button type="submit">
{createRole.isLoading ? <Loading className="w-4 h-4" /> : "Create"}
Expand Down

0 comments on commit 7332f9e

Please sign in to comment.