Disable space fields whilst their form is busy

This commit is contained in:
Michael Telatynski 2021-05-12 13:30:00 +01:00
parent 5d02e44293
commit 2c89be312a
3 changed files with 8 additions and 4 deletions

View file

@ -178,7 +178,7 @@ const SpaceCreateMenu = ({ onFinished }) => {
</p>
<form className="mx_SpaceBasicSettings" onSubmit={onSpaceCreateClick}>
<SpaceAvatar setAvatar={setAvatar} />
<SpaceAvatar setAvatar={setAvatar} avatarDisabled={busy} />
<Field
name="spaceName"
@ -188,6 +188,7 @@ const SpaceCreateMenu = ({ onFinished }) => {
onChange={ev => setName(ev.target.value)}
ref={spaceNameField}
onValidate={spaceNameValidator}
disabled={busy}
/>
<Field
@ -197,6 +198,7 @@ const SpaceCreateMenu = ({ onFinished }) => {
value={topic}
onChange={ev => setTopic(ev.target.value)}
rows={3}
disabled={busy}
/>
</form>