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:
Sebastian Sdorra
2018-07-27 10:54:49 +02:00
parent c7171dd540
commit e34904afce
2 changed files with 7 additions and 3 deletions

View File

@@ -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>
);
}