aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorMatjaž Črnko <m.crnko@txt.si>2023-11-06 15:39:41 +0100
committerMatjaž Črnko <m.crnko@txt.si>2023-11-06 15:39:41 +0100
commitee802369c95cc820a12ae62b401e17a19a073311 (patch)
treefdb4cc2deb9f502955df781cdf7705e9874c0d15 /modern/src
parentd369a2d7a71e6257027802f4bd7505bb4f3fe73b (diff)
downloadtrackermap-web-ee802369c95cc820a12ae62b401e17a19a073311.tar.gz
trackermap-web-ee802369c95cc820a12ae62b401e17a19a073311.tar.bz2
trackermap-web-ee802369c95cc820a12ae62b401e17a19a073311.zip
PWA: Replace reload button with an icon
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/UpdateCheckPrompt.tsx9
-rw-r--r--modern/src/resources/l10n/en.json1
2 files changed, 5 insertions, 5 deletions
diff --git a/modern/src/UpdateCheckPrompt.tsx b/modern/src/UpdateCheckPrompt.tsx
index 315a65ef..a3906304 100644
--- a/modern/src/UpdateCheckPrompt.tsx
+++ b/modern/src/UpdateCheckPrompt.tsx
@@ -1,4 +1,5 @@
-import { Snackbar, Button } from '@mui/material';
+import { Snackbar, IconButton } from '@mui/material';
+import RefreshIcon from '@mui/icons-material/Refresh';
import React from 'react'
import { useTranslation } from './common/components/LocalizationProvider';
import { useAttributePreference } from './common/util/preferences';
@@ -46,9 +47,9 @@ function UpdateCheckPrompt() {
open={needRefresh}
message={t('settingsUpdateAvailable')}
action={(
- <Button onClick={() => updateServiceWorker(true)}>
- {t('settingsReload')}
- </Button>
+ <IconButton color="inherit" onClick={() => updateServiceWorker(true)}>
+ <RefreshIcon />
+ </IconButton>
)}
/>
);
diff --git a/modern/src/resources/l10n/en.json b/modern/src/resources/l10n/en.json
index 510e401f..d2e9c7ca 100644
--- a/modern/src/resources/l10n/en.json
+++ b/modern/src/resources/l10n/en.json
@@ -227,7 +227,6 @@
"settingsTotpEnable": "Enable One-time Password",
"settingsTotpForce": "Force One-time Password",
"settingsServiceWorkerUpdateInterval": "ServiceWorker Update Interval",
- "settingsReload": "Reload",
"settingsUpdateAvailable": "There is an update available.",
"reportTitle": "Reports",
"reportScheduled": "Scheduled Reports",