Explorar o código

disable profiles input if it contains one entry only

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
f183751f28
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      extension/ui/bg/ui-options.js

+ 1 - 0
extension/ui/bg/ui-options.js

@@ -432,6 +432,7 @@
 				ruleEditAutoSaveProfileInput.appendChild(optionElement.cloneNode(true));
 			}
 		});
+		profileNamesInput.disabled = profileNamesInput.options.length == 1;
 		optionElement = document.createElement("option");
 		optionElement.value = DISABLED_PROFILE_NAME;
 		optionElement.textContent = browser.i18n.getMessage("profileDisabled");