mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(site): fix state used to check if creating was loading (#10296)
This commit is contained in:
@@ -93,7 +93,6 @@ export const CreateWorkspacePageView: FC<CreateWorkspacePageViewProps> = ({
|
||||
enableReinitialize: true,
|
||||
onSubmit: (request) => {
|
||||
if (!verifyExternalAuth()) {
|
||||
form.setSubmitting(false);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -138,7 +137,7 @@ export const CreateWorkspacePageView: FC<CreateWorkspacePageViewProps> = ({
|
||||
)}
|
||||
<TextField
|
||||
{...getFieldHelpers("name")}
|
||||
disabled={form.isSubmitting}
|
||||
disabled={creatingWorkspace}
|
||||
onChange={onChangeTrimmed(form)}
|
||||
autoFocus
|
||||
fullWidth
|
||||
@@ -205,7 +204,7 @@ export const CreateWorkspacePageView: FC<CreateWorkspacePageViewProps> = ({
|
||||
disabled:
|
||||
disabledParamsList?.includes(
|
||||
parameter.name.toLowerCase().replace(/ /g, "_"),
|
||||
) || form.isSubmitting,
|
||||
) || creatingWorkspace,
|
||||
};
|
||||
}}
|
||||
/>
|
||||
@@ -226,7 +225,7 @@ export const CreateWorkspacePageView: FC<CreateWorkspacePageViewProps> = ({
|
||||
disabled:
|
||||
disabledParamsList?.includes(
|
||||
parameter.name.toLowerCase().replace(/ /g, "_"),
|
||||
) || form.isSubmitting,
|
||||
) || creatingWorkspace,
|
||||
};
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user