diff --git a/CHANGELOG.md b/CHANGELOG.md index da22c93..acea5d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added +- The main view now includes a reset button + ### Changed - Secret keys are now restricted to 128 bits (16 bytes) or 256 bits (32 bytes) - The local part cannot contain the separator diff --git a/src/locales/en.json b/src/locales/en.json index 843a77d..c4e29df 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -5,7 +5,8 @@ "cancel": "Cancel", "close": "Close", "copy": "Copy", - "delete": "Delete" + "delete": "Delete", + "reset": "Reset" } }, "navbar": { @@ -65,7 +66,8 @@ "name": "Name", "input": "Dedicated name", "address": "Address", - "copy": "@:invariants.controls.copy" + "copy": "@:invariants.controls.copy", + "reset": "@:invariants.controls.reset" }, "manageAccounts": { "title": "Accounts", diff --git a/src/locales/fr.json b/src/locales/fr.json index 90cdcd4..4130474 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -5,7 +5,8 @@ "cancel": "Annuler", "close": "Fermer", "copy": "Copier", - "delete": "Supprimer" + "delete": "Supprimer", + "reset": "Réinitialiser" } }, "navbar": { @@ -65,7 +66,8 @@ "name": "Nom", "input": "Nom dédié", "address": "Adresse", - "copy": "@:invariants.controls.copy" + "copy": "@:invariants.controls.copy", + "reset": "@:invariants.controls.reset" }, "manageAccounts": { "title": "Comptes", diff --git a/src/views/MainView.vue b/src/views/MainView.vue index cc16ad1..ec96568 100644 --- a/src/views/MainView.vue +++ b/src/views/MainView.vue @@ -44,6 +44,9 @@ const generatedAddr = computed(() => { const copyAddr = () => { navigator.clipboard.writeText(generatedAddr.value); }; +const resetForm = () => { + subAddrName.value = ''; +};