Add a reset button
This commit is contained in:
parent
0dc94a7edd
commit
a7c0548b7e
4 changed files with 15 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -44,6 +44,9 @@ const generatedAddr = computed(() => {
|
|||
const copyAddr = () => {
|
||||
navigator.clipboard.writeText(generatedAddr.value);
|
||||
};
|
||||
const resetForm = () => {
|
||||
subAddrName.value = '';
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
@ -74,6 +77,7 @@ const copyAddr = () => {
|
|||
</div>
|
||||
<div class="buttons is-centered">
|
||||
<button class="button is-primary" @click="copyAddr">{{ $t("main.copy") }}</button>
|
||||
<button class="button is-light" @click="resetForm">{{ $t("main.reset") }}</button>
|
||||
</div>
|
||||
</LayoutComponent>
|
||||
</template>
|
||||
|
|
Loading…
Reference in a new issue