aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEder Diego de Sousa <me@diego.dev.br>2022-07-20 16:01:33 -0300
committerEder Diego de Sousa <me@diego.dev.br>2022-07-20 16:01:33 -0300
commit594fdd503e66d464647140f424040cd82087b515 (patch)
tree58487df192c4ab42a10e0faad7cb54facd29edcb
parent8a1be572100705ba8a21de226ce367f2cb151fa5 (diff)
downloadtrackermap-web-594fdd503e66d464647140f424040cd82087b515.tar.gz
trackermap-web-594fdd503e66d464647140f424040cd82087b515.tar.bz2
trackermap-web-594fdd503e66d464647140f424040cd82087b515.zip
disable toasts
-rw-r--r--modern/src/settings/CalendarPage.js5
-rw-r--r--modern/src/settings/DevicePage.js5
-rw-r--r--web/l10n/en.json7
3 files changed, 2 insertions, 15 deletions
diff --git a/modern/src/settings/CalendarPage.js b/modern/src/settings/CalendarPage.js
index d9cd895a..81273b6b 100644
--- a/modern/src/settings/CalendarPage.js
+++ b/modern/src/settings/CalendarPage.js
@@ -70,10 +70,7 @@ const CalendarPage = () => {
filesLimit={1}
onChange={handleFiles}
alertSnackbarProps={components.MuiSnackbar.defaultProps}
- getFileLimitExceedMessage={(filesLimit) => `${t('sharedMaxFileLimit')} ${t('sharedOnly')} ${filesLimit} ${t('sharedAllowed')}`}
- getFileAddedMessage={(fileName) => `${t('sharedFile')} ${fileName} ${t('sharedSuccessfullyAdded')}`}
- getFileRemovedMessage={(fileName) => `${t('sharedFile')} ${fileName} ${t('sharedRemoved')}`}
- getDropRejectMessage={(file) => `${t('sharedFile')} ${file.name} ${t('sharedDropRejectFile')} ${file.size} ${t('sharedMegabytes')}`}
+ showAlerts={false}
/>
</AccordionDetails>
</Accordion>
diff --git a/modern/src/settings/DevicePage.js b/modern/src/settings/DevicePage.js
index f3330040..7f33d1f8 100644
--- a/modern/src/settings/DevicePage.js
+++ b/modern/src/settings/DevicePage.js
@@ -155,10 +155,7 @@ const DevicePage = () => {
filesLimit={1}
onChange={handleFiles}
alertSnackbarProps={components.MuiSnackbar.defaultProps}
- getFileLimitExceedMessage={(filesLimit) => `${t('sharedMaxFileLimit')} ${t('sharedOnly')} ${filesLimit} ${t('sharedAllowed')}`}
- getFileAddedMessage={(fileName) => `${t('sharedFile')} ${fileName} ${t('sharedSuccessfullyAdded')}`}
- getFileRemovedMessage={(fileName) => `${t('sharedFile')} ${fileName} ${t('sharedRemoved')}`}
- getDropRejectMessage={(file) => `${t('sharedFile')} ${file.name} ${t('sharedDropRejectFile')} ${file.size} ${t('sharedMegabytes')}`}
+ showAlerts={false}
/>
</AccordionDetails>
</Accordion>
diff --git a/web/l10n/en.json b/web/l10n/en.json
index 163b0a05..2549a081 100644
--- a/web/l10n/en.json
+++ b/web/l10n/en.json
@@ -94,13 +94,6 @@
"sharedImport": "Import",
"sharedColumns": "Columns",
"sharedDropzoneText": "Drag and drop a file here or click",
- "sharedSuccessfullyAdded": "successfully added",
- "sharedRemoved": "removed",
- "sharedMaxFileLimit": "Maximum allowed number of files exceeded.",
- "sharedOnly": "Only",
- "sharedAllowed": "allowed",
- "sharedDropRejectFile": "was rejected. File type not supported. File is too big. Size limit is",
- "sharedMegabytes": "megabytes",
"attributeSpeedLimit": "Speed Limit",
"attributePolylineDistance": "Polyline Distance",
"attributeReportIgnoreOdometer": "Report: Ignore Odometer",