diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b0c522..85b007f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - The style has been entirely reworked using Bootstrap instead of Bulma - It is now impossible to include the separator in the dedicated name - When adding a new account, error messages are displayed alongside each affected elements whenever possible +- By default, the new sub-address form reset button switches to the default account ## Fixed - Invalid preferences are now automatically corrected diff --git a/src/const.js b/src/const.js index f8ed9a5..b743a44 100644 --- a/src/const.js +++ b/src/const.js @@ -6,3 +6,4 @@ export const allowedLocales = [ 'en', 'fr', ]; +export const resetToDefaultAccount = true; diff --git a/src/locales/en.json b/src/locales/en.json index 802096b..2a92660 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -53,6 +53,7 @@ "title": "Preferences", "language": "Language", "colorMode": "Theme", + "resetToDefault": "Switch to the default account when the new sub-address form is reset", "lightTheme": "Light", "darkTheme": "Dark", "close": "@:invariants.controls.close" diff --git a/src/locales/fr.json b/src/locales/fr.json index b796013..8791722 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -53,6 +53,7 @@ "title": "Préférences", "language": "Langue", "colorMode": "Thème", + "resetToDefault": "Basculer sur le compte par défaut lorsque le formulaire de sous-adresse est réinitialisé", "lightTheme": "Clair", "darkTheme": "Sombre", "close": "@:invariants.controls.close" diff --git a/src/views/ConfigView.vue b/src/views/ConfigView.vue index 0e534f1..c134dde 100644 --- a/src/views/ConfigView.vue +++ b/src/views/ConfigView.vue @@ -1,4 +1,5 @@