Settings script: drop the per-field reminder (section 32.2 point 10)
This commit is contained in:
1 parent
3dc3da1234
commit
63f0f1dff0
1 file changed
-15
@@ -19,19 +19,6 @@ let settings = { keys: [], wallet_software: [] };
|
||||
// The two types a key can have (section 23.3).
|
||||
const typeOptions = [["hardware", "Hardware"], ["cloud", "Cloud"]];
|
||||
|
||||
// The reminder that belongs with every free-text field (sections 2 and 15).
|
||||
const SECRET_WARNING = "Never paste a seed phrase or a private key here.";
|
||||
|
||||
function secretWarning() {
|
||||
// A short reminder that sits with a free-text field. The server refuses a value
|
||||
// that looks like a wallet secret and stores nothing, so the field says so
|
||||
// before the user types (sections 2 and 15).
|
||||
const warning = document.createElement("span");
|
||||
warning.className = "field-help secret-warning";
|
||||
warning.textContent = SECRET_WARNING;
|
||||
return warning;
|
||||
}
|
||||
|
||||
function emptyState(text) {
|
||||
const message = document.createElement("p");
|
||||
message.className = "empty-state";
|
||||
@@ -107,7 +94,6 @@ function softwareRow(name) {
|
||||
const input = makeTextInput(name);
|
||||
input.className = "software-name";
|
||||
const field = makeField("Wallet software name", "wallet_software_name", input);
|
||||
field.append(secretWarning());
|
||||
row.append(field);
|
||||
|
||||
const remove = document.createElement("button");
|
||||
@@ -258,7 +244,6 @@ function rotationCard(key) {
|
||||
const pathInput = makeTextInput(key.has_checks ? "" : key.address_path || "", 200);
|
||||
pathInput.className = "rotation-path";
|
||||
card.append(makeField("Address path", `rotation_path_${key.id}`, pathInput));
|
||||
card.append(secretWarning());
|
||||
|
||||
const help = document.createElement("p");
|
||||
help.className = "field-help";
|
||||
|
||||
Reference in new issue
Block a user