diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-22 17:32:07 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-22 17:32:07 -0700 |
commit | f9f5ea547e61b6ff527149fa5814851240d2c967 (patch) | |
tree | e2902f69760c2c2c4837752ef81f44883b231be1 /modern/src/settings/UsersPage.js | |
parent | 98cb21230d938ac04f53a4425e5d3eae9cfdbfda (diff) | |
download | trackermap-web-f9f5ea547e61b6ff527149fa5814851240d2c967.tar.gz trackermap-web-f9f5ea547e61b6ff527149fa5814851240d2c967.tar.bz2 trackermap-web-f9f5ea547e61b6ff527149fa5814851240d2c967.zip |
Add device expiration (fix #85)
Diffstat (limited to 'modern/src/settings/UsersPage.js')
-rw-r--r-- | modern/src/settings/UsersPage.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/settings/UsersPage.js b/modern/src/settings/UsersPage.js index 5b2c1833..dc061adc 100644 --- a/modern/src/settings/UsersPage.js +++ b/modern/src/settings/UsersPage.js @@ -5,7 +5,7 @@ import { import LoginIcon from '@mui/icons-material/Login'; import makeStyles from '@mui/styles/makeStyles'; import { useCatch, useEffectAsync } from '../reactHelper'; -import { formatBoolean } from '../common/util/formatter'; +import { formatBoolean, formatTime } from '../common/util/formatter'; import { useTranslation } from '../common/components/LocalizationProvider'; import PageLayout from '../common/components/PageLayout'; import SettingsMenu from './components/SettingsMenu'; @@ -69,6 +69,7 @@ const UsersPage = () => { <TableCell>{t('userEmail')}</TableCell> <TableCell>{t('userAdmin')}</TableCell> <TableCell>{t('sharedDisabled')}</TableCell> + <TableCell>{t('userExpirationTime')}</TableCell> <TableCell className={classes.columnAction} /> </TableRow> </TableHead> @@ -79,6 +80,7 @@ const UsersPage = () => { <TableCell>{item.email}</TableCell> <TableCell>{formatBoolean(item.administrator, t)}</TableCell> <TableCell>{formatBoolean(item.disabled, t)}</TableCell> + <TableCell>{formatTime(item.expirationTime, 'YYYY-MM-DD')}</TableCell> <TableCell className={classes.columnAction} padding="none"> <CollectionActions itemId={item.id} |