diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index 1509958f..0e9950d7 100644
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -297,6 +297,18 @@
"message": "Use Autofill",
"description": "Use Autofill"
},
+ "autofill_mode": {
+ "message": "Autofill mode",
+ "description": "Label for autofill mode selector"
+ },
+ "autofill_mode_replace": {
+ "message": "Replace (dedicated OTP field)",
+ "description": "Autofill replaces the value in detected OTP field"
+ },
+ "autofill_mode_append": {
+ "message": "Append to focused field (password + OTP)",
+ "description": "Autofill appends the code to the currently focused input"
+ },
"use_high_contrast": {
"message": "Use High Contrast",
"description": "Use High Contrast"
diff --git a/src/components/Popup/EntryComponent.vue b/src/components/Popup/EntryComponent.vue
index 92099b5b..6a4a2684 100644
--- a/src/components/Popup/EntryComponent.vue
+++ b/src/components/Popup/EntryComponent.vue
@@ -227,6 +227,7 @@ export default Vue.extend({
chrome.tabs.sendMessage(tab.id, {
action: "pastecode",
code: entry.code,
+ mode: this.$store.state.menu.autofillMode,
});
}
}
diff --git a/src/components/Popup/PreferencesPage.vue b/src/components/Popup/PreferencesPage.vue
index 299b9d8d..2db6850d 100644
--- a/src/components/Popup/PreferencesPage.vue
+++ b/src/components/Popup/PreferencesPage.vue
@@ -30,6 +30,15 @@
+
+
+
+