Hide trackers proxy settings if tor always set on /Config page
This commit is contained in:
parent
ab9fe173a8
commit
d1fb4067e7
2 changed files with 8 additions and 10 deletions
|
@ -123,6 +123,8 @@ class ConfigStorage extends Class
|
|||
{title: "Tor", value: "tor"}
|
||||
{title: "Disable", value: "disable"}
|
||||
]
|
||||
isHidden: ->
|
||||
Page.values["tor"] == "always"
|
||||
|
||||
section.items.push
|
||||
title: "Custom socks proxy address for trackers"
|
||||
|
|
|
@ -55,7 +55,6 @@
|
|||
|
||||
}).call(this);
|
||||
|
||||
|
||||
/* ---- lib/Promise.coffee ---- */
|
||||
|
||||
|
||||
|
@ -159,7 +158,6 @@
|
|||
|
||||
}).call(this);
|
||||
|
||||
|
||||
/* ---- lib/Prototypes.coffee ---- */
|
||||
|
||||
|
||||
|
@ -186,7 +184,6 @@
|
|||
|
||||
}).call(this);
|
||||
|
||||
|
||||
/* ---- lib/maquette.js ---- */
|
||||
|
||||
|
||||
|
@ -1128,7 +1125,6 @@
|
|||
|
||||
}).call(this);
|
||||
|
||||
|
||||
/* ---- utils/Dollar.coffee ---- */
|
||||
|
||||
|
||||
|
@ -1141,7 +1137,6 @@
|
|||
|
||||
}).call(this);
|
||||
|
||||
|
||||
/* ---- utils/ZeroFrame.coffee ---- */
|
||||
|
||||
|
||||
|
@ -1273,7 +1268,6 @@
|
|||
|
||||
}).call(this);
|
||||
|
||||
|
||||
/* ---- ConfigStorage.coffee ---- */
|
||||
|
||||
|
||||
|
@ -1450,7 +1444,10 @@
|
|||
title: "Disable",
|
||||
value: "disable"
|
||||
}
|
||||
]
|
||||
],
|
||||
isHidden: function() {
|
||||
return Page.values["tor"] === "always";
|
||||
}
|
||||
});
|
||||
section.items.push({
|
||||
title: "Custom socks proxy address for trackers",
|
||||
|
@ -1707,7 +1704,6 @@
|
|||
|
||||
}).call(this);
|
||||
|
||||
|
||||
/* ---- UiConfig.coffee ---- */
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue