diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-21 14:15:55 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-21 18:31:07 -0700 |
commit | 7825be90d88e3965c4a41a4e9011ae29b7670be9 (patch) | |
tree | 841404affbc6c8e34201f6e06c90bb9d017d580a /modern/src/settings/DevicePage.js | |
parent | 64f446d6b0aa226eb565709f2513de15f40646aa (diff) | |
download | trackermap-web-7825be90d88e3965c4a41a4e9011ae29b7670be9.tar.gz trackermap-web-7825be90d88e3965c4a41a4e9011ae29b7670be9.tar.bz2 trackermap-web-7825be90d88e3965c4a41a4e9011ae29b7670be9.zip |
Better notification title
Diffstat (limited to 'modern/src/settings/DevicePage.js')
-rw-r--r-- | modern/src/settings/DevicePage.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/settings/DevicePage.js b/modern/src/settings/DevicePage.js index bf79109b..b54c7c81 100644 --- a/modern/src/settings/DevicePage.js +++ b/modern/src/settings/DevicePage.js @@ -17,7 +17,6 @@ import EditAttributesAccordion from './components/EditAttributesAccordion'; import SelectField from '../common/components/SelectField'; import deviceCategories from '../common/util/deviceCategories'; import LinkField from '../common/components/LinkField'; -import { prefixString } from '../common/util/stringUtils'; import { useTranslation } from '../common/components/LocalizationProvider'; import useDeviceAttributes from '../common/attributes/useDeviceAttributes'; import { useAdministrator } from '../common/util/permissions'; @@ -25,6 +24,7 @@ import SettingsMenu from './components/SettingsMenu'; import useCommonDeviceAttributes from '../common/attributes/useCommonDeviceAttributes'; import useFeatures from '../common/util/useFeatures'; import { useCatch } from '../reactHelper'; +import { formatNotificationTitle } from '../common/util/formatter'; const useStyles = makeStyles((theme) => ({ details: { @@ -185,7 +185,7 @@ const DevicePage = () => { baseId={item.id} keyBase="deviceId" keyLink="notificationId" - titleGetter={(it) => t(prefixString('event', it.type))} + titleGetter={(it) => formatNotificationTitle(t, it)} label={t('sharedNotifications')} /> {!features.disableDrivers && ( |