mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 01:15:44 +01:00
move loading state for add user back to the submit button
This change is necessary, because the old loading behaviour forces the form to rerender, which in turn causes a lost of the input. Now the loading state is back to the submit button.
This commit is contained in:
@@ -38,10 +38,12 @@ class AddUser extends React.Component<Props> {
|
||||
<Page
|
||||
title={t("add-user.title")}
|
||||
subtitle={t("add-user.subtitle")}
|
||||
loading={loading}
|
||||
error={error}
|
||||
>
|
||||
<UserForm submitForm={user => this.createUser(user)} />
|
||||
<UserForm
|
||||
submitForm={user => this.createUser(user)}
|
||||
loading={loading}
|
||||
/>
|
||||
</Page>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user