Przeglądaj źródła

disable profiles input if it contains one entry only

Gildas 7 lat temu
rodzic
commit
f183751f28
1 zmienionych plików z 1 dodań i 0 usunięć
  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");