Fix jumpy ui when changing language
Closes 7070 Spinner at wrong location when changing language
This commit is contained in:
parent
c2a2068926
commit
40ed8059b7
1 changed files with 15 additions and 13 deletions
|
@ -35,8 +35,7 @@ function SettingLanguage(props: Props) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
{previousLanguage && <Spinner type="small" />}
|
{!previousLanguage && (
|
||||||
|
|
||||||
<FormField
|
<FormField
|
||||||
name="language_select"
|
name="language_select"
|
||||||
type="select"
|
type="select"
|
||||||
|
@ -49,6 +48,9 @@ function SettingLanguage(props: Props) {
|
||||||
</option>
|
</option>
|
||||||
))}
|
))}
|
||||||
</FormField>
|
</FormField>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{previousLanguage && <Spinner type="small" />}
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue