aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-22 14:34:19 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-22 14:34:19 -0700
commit729c219369e288a60432f0e7722dae36088c0bda (patch)
tree878e7a289abc3cabbc68f42683220a14389f1d2d /modern/src/settings
parent2ec46ed25ccb6860dd4cf5e71be762186b411d32 (diff)
downloadtrackermap-web-729c219369e288a60432f0e7722dae36088c0bda.tar.gz
trackermap-web-729c219369e288a60432f0e7722dae36088c0bda.tar.bz2
trackermap-web-729c219369e288a60432f0e7722dae36088c0bda.zip
Convert remove to snackbar
Diffstat (limited to 'modern/src/settings')
-rw-r--r--modern/src/settings/components/EditCollectionView.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/modern/src/settings/components/EditCollectionView.js b/modern/src/settings/components/EditCollectionView.js
index ed92c838..b0bf3ea0 100644
--- a/modern/src/settings/components/EditCollectionView.js
+++ b/modern/src/settings/components/EditCollectionView.js
@@ -60,9 +60,11 @@ const EditCollectionView = ({
menuHide();
};
- const handleRemoveResult = () => {
+ const handleRemoveResult = (removed) => {
setRemoveDialogShown(false);
- setUpdateTimestamp(Date.now());
+ if (removed) {
+ setUpdateTimestamp(Date.now());
+ }
};
const Content = content;