aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-05-18 23:20:29 -0700
committerAnton Tananaev <anton@traccar.org>2023-05-18 23:20:29 -0700
commit03b6c9fe0eda8788480bd6ae675658769758c96d (patch)
tree8bb5b596941360d97dbb5335434ef094987b6eb7 /modern
parent98695393839b67af9dabf7c743661219468a682a (diff)
downloadtrackermap-web-03b6c9fe0eda8788480bd6ae675658769758c96d.tar.gz
trackermap-web-03b6c9fe0eda8788480bd6ae675658769758c96d.tar.bz2
trackermap-web-03b6c9fe0eda8788480bd6ae675658769758c96d.zip
Revert "Remove server switch"
This reverts commit 98695393839b67af9dabf7c743661219468a682a.
Diffstat (limited to 'modern')
-rw-r--r--modern/src/login/LoginPage.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/modern/src/login/LoginPage.js b/modern/src/login/LoginPage.js
index 8a176768..59e64bed 100644
--- a/modern/src/login/LoginPage.js
+++ b/modern/src/login/LoginPage.js
@@ -1,10 +1,11 @@
import React, { useEffect, useState } from 'react';
import moment from 'moment';
import {
- useMediaQuery, InputLabel, Select, MenuItem, FormControl, Button, TextField, Link, Snackbar, IconButton, LinearProgress,
+ useMediaQuery, InputLabel, Select, MenuItem, FormControl, Button, TextField, Link, Snackbar, IconButton, Tooltip, LinearProgress,
} from '@mui/material';
import makeStyles from '@mui/styles/makeStyles';
import CloseIcon from '@mui/icons-material/Close';
+import LockOpenIcon from '@mui/icons-material/LockOpen';
import { useTheme } from '@mui/material/styles';
import { useDispatch, useSelector } from 'react-redux';
import { useNavigate } from 'react-router-dom';
@@ -141,7 +142,15 @@ const LoginPage = () => {
return (
<LoginLayout>
- <div className={classes.options} />
+ <div className={classes.options}>
+ {nativeEnvironment && (
+ <Tooltip title={t('settingsServer')}>
+ <IconButton onClick={() => navigate('/change-server')}>
+ <LockOpenIcon />
+ </IconButton>
+ </Tooltip>
+ )}
+ </div>
<div className={classes.container}>
{useMediaQuery(theme.breakpoints.down('lg')) && <LogoImage color={theme.palette.primary.main} />}
<TextField