Align RBAC API contract
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
8dc61d7786
commit
4c4d037a1e
39 files changed
+410
-1071
No files matched your search
@@ -6,6 +6,7 @@ import { cn } from "@/lib/utils";
|
||||
|
||||
interface FormActionsProps {
|
||||
isPending?: boolean;
|
||||
submitDisabled?: boolean;
|
||||
onSubmit?: () => void;
|
||||
onCancel?: () => void;
|
||||
submitLabel?: ReactNode;
|
||||
@@ -28,6 +29,7 @@ interface FormActionsProps {
|
||||
|
||||
export function FormActions({
|
||||
isPending = false,
|
||||
submitDisabled = false,
|
||||
onSubmit,
|
||||
onCancel,
|
||||
submitLabel,
|
||||
@@ -67,7 +69,7 @@ export function FormActions({
|
||||
</Button>
|
||||
)}
|
||||
{saveOnEveryStep && onSubmit && !showSubmit && (
|
||||
<Button type="button" onClick={onSubmit} disabled={isPending}>
|
||||
<Button type="button" onClick={onSubmit} disabled={isPending || submitDisabled}>
|
||||
{isPending ? (
|
||||
<span className="flex items-center gap-2">
|
||||
<Loader2 size={14} className="animate-spin" />
|
||||
@@ -79,7 +81,7 @@ export function FormActions({
|
||||
</Button>
|
||||
)}
|
||||
{showSubmit && onSubmit && (
|
||||
<Button type="button" onClick={onSubmit} disabled={isPending}>
|
||||
<Button type="button" onClick={onSubmit} disabled={isPending || submitDisabled}>
|
||||
{isPending ? (
|
||||
<span className="flex items-center gap-2">
|
||||
<Loader2 size={14} className="animate-spin" />
|
||||
|
||||
Reference in new issue
Block a user