summaryrefslogtreecommitdiffstats
path: root/browser/extensions/formautofill/content/manageDialog.js
diff options
context:
space:
mode:
Diffstat (limited to 'browser/extensions/formautofill/content/manageDialog.js')
-rw-r--r--browser/extensions/formautofill/content/manageDialog.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/browser/extensions/formautofill/content/manageDialog.js b/browser/extensions/formautofill/content/manageDialog.js
index 25498fbcaf..1dbce04f17 100644
--- a/browser/extensions/formautofill/content/manageDialog.js
+++ b/browser/extensions/formautofill/content/manageDialog.js
@@ -211,6 +211,9 @@ class ManageRecords {
this._elements.edit.setAttribute("disabled", "disabled");
this._elements.remove.removeAttribute("disabled");
}
+ this._elements.add.disabled = !Services.prefs.getBoolPref(
+ `extensions.formautofill.${this._subStorageName}.enabled`
+ );
}
/**