Command Menu improvements (#857)
* Add dialogs for reset and clear actions + clear stores * Catch failures * Improve tests, don't reset store on failure * Remove unnecessary i18n string --------- Co-authored-by: philon- <philon-@users.noreply.github.com>
This commit is contained in:
co-authored by
philon-
parent
1bdd923365
commit
8cc451546d
@@ -15,7 +15,6 @@
|
||||
"messages": "Messages",
|
||||
"map": "Map",
|
||||
"config": "Config",
|
||||
"channels": "Channels",
|
||||
"nodes": "Nodes"
|
||||
}
|
||||
},
|
||||
@@ -45,7 +44,8 @@
|
||||
"label": "Debug",
|
||||
"command": {
|
||||
"reconfigure": "Reconfigure",
|
||||
"clearAllStoredMessages": "Clear All Stored Message"
|
||||
"clearAllStoredMessages": "Clear All Stored Messages",
|
||||
"clearAllStores": "Clear All Local Storage"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -194,5 +194,29 @@
|
||||
"title": "Client Notification",
|
||||
"TraceRoute can only be sent once every 30 seconds": "TraceRoute can only be sent once every 30 seconds",
|
||||
"Compromised keys were detected and regenerated.": "Compromised keys were detected and regenerated."
|
||||
},
|
||||
"resetNodeDb": {
|
||||
"title": "Reset Node Database",
|
||||
"description": "This will clear all nodes from the connected device's node database and clear all message history in the client. This cannot be undone. Are you sure you want to continue?",
|
||||
"confirm": "Reset Node Database",
|
||||
"failedTitle": "There was an error resetting the Node DB. Please try again."
|
||||
},
|
||||
"clearAllStores": {
|
||||
"title": "Clear All Local Storage",
|
||||
"description": "This will clear all locally stored data, including message history and node databases for all previously connected devices. This will require you to reconnect to your node once complete and cannot be undone. Are you sure you want to continue?",
|
||||
"confirm": "Clear all local storage",
|
||||
"failedTitle": "There was an error clearing local storage. Please try again."
|
||||
},
|
||||
"factoryResetDevice": {
|
||||
"title": "Factory Reset Device",
|
||||
"description": "This will factory reset the connected device, erasing all configurations and data on the device as well as all nodes and messages saved in the client. This cannot be undone. Are you sure you want to continue?",
|
||||
"confirm": "Factory Reset Device",
|
||||
"failedTitle": "There was an error performing the factory reset. Please try again."
|
||||
},
|
||||
"factoryResetConfig": {
|
||||
"title": "Factory Reset Config",
|
||||
"description": "This will factory reset the configuration on the connected device, erasing all configurations on the device. This cannot be undone. Are you sure you want to continue?",
|
||||
"confirm": "Factory Reset Config",
|
||||
"failedTitle": "There was an error performing the factory reset. Please try again."
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user