Always show server address input on LoginPage
In case the webUI wasn't hosted on the same domain as the server, the ui was stuck on the login page, due to the inferred server address being wrong.
This commit is contained in:
@@ -101,6 +101,7 @@ export const LoginPage = () => {
|
|||||||
</Stack>
|
</Stack>
|
||||||
<Stack
|
<Stack
|
||||||
sx={{
|
sx={{
|
||||||
|
position: 'relative',
|
||||||
minHeight: '50vh',
|
minHeight: '50vh',
|
||||||
flexBasis: '40%',
|
flexBasis: '40%',
|
||||||
p: 4,
|
p: 4,
|
||||||
@@ -131,11 +132,13 @@ export const LoginPage = () => {
|
|||||||
variant="standard"
|
variant="standard"
|
||||||
onChange={(e) => setPassword(e.target.value)}
|
onChange={(e) => setPassword(e.target.value)}
|
||||||
/>
|
/>
|
||||||
{import.meta.env.DEV && <ServerAddressSetting />}
|
|
||||||
</Stack>
|
</Stack>
|
||||||
<Button disabled={isLoading || (!username && !password)} variant="contained" onClick={doLogin}>
|
<Button disabled={isLoading || (!username && !password)} variant="contained" onClick={doLogin}>
|
||||||
{t('global.button.log_in')}
|
{t('global.button.log_in')}
|
||||||
</Button>
|
</Button>
|
||||||
|
<Stack sx={{ position: 'absolute', left: 0, bottom: 0 }}>
|
||||||
|
<ServerAddressSetting />
|
||||||
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
Reference in New Issue
Block a user