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: "Tor", value: "tor"}
|
||||||
{title: "Disable", value: "disable"}
|
{title: "Disable", value: "disable"}
|
||||||
]
|
]
|
||||||
|
isHidden: ->
|
||||||
|
Page.values["tor"] == "always"
|
||||||
|
|
||||||
section.items.push
|
section.items.push
|
||||||
title: "Custom socks proxy address for trackers"
|
title: "Custom socks proxy address for trackers"
|
||||||
|
@ -154,4 +156,4 @@ class ConfigStorage extends Class
|
||||||
@items.push(section)
|
@items.push(section)
|
||||||
return section
|
return section
|
||||||
|
|
||||||
window.ConfigStorage = ConfigStorage
|
window.ConfigStorage = ConfigStorage
|
||||||
|
|
|
@ -55,7 +55,6 @@
|
||||||
|
|
||||||
}).call(this);
|
}).call(this);
|
||||||
|
|
||||||
|
|
||||||
/* ---- lib/Promise.coffee ---- */
|
/* ---- lib/Promise.coffee ---- */
|
||||||
|
|
||||||
|
|
||||||
|
@ -159,7 +158,6 @@
|
||||||
|
|
||||||
}).call(this);
|
}).call(this);
|
||||||
|
|
||||||
|
|
||||||
/* ---- lib/Prototypes.coffee ---- */
|
/* ---- lib/Prototypes.coffee ---- */
|
||||||
|
|
||||||
|
|
||||||
|
@ -186,7 +184,6 @@
|
||||||
|
|
||||||
}).call(this);
|
}).call(this);
|
||||||
|
|
||||||
|
|
||||||
/* ---- lib/maquette.js ---- */
|
/* ---- lib/maquette.js ---- */
|
||||||
|
|
||||||
|
|
||||||
|
@ -1128,7 +1125,6 @@
|
||||||
|
|
||||||
}).call(this);
|
}).call(this);
|
||||||
|
|
||||||
|
|
||||||
/* ---- utils/Dollar.coffee ---- */
|
/* ---- utils/Dollar.coffee ---- */
|
||||||
|
|
||||||
|
|
||||||
|
@ -1141,7 +1137,6 @@
|
||||||
|
|
||||||
}).call(this);
|
}).call(this);
|
||||||
|
|
||||||
|
|
||||||
/* ---- utils/ZeroFrame.coffee ---- */
|
/* ---- utils/ZeroFrame.coffee ---- */
|
||||||
|
|
||||||
|
|
||||||
|
@ -1273,7 +1268,6 @@
|
||||||
|
|
||||||
}).call(this);
|
}).call(this);
|
||||||
|
|
||||||
|
|
||||||
/* ---- ConfigStorage.coffee ---- */
|
/* ---- ConfigStorage.coffee ---- */
|
||||||
|
|
||||||
|
|
||||||
|
@ -1450,7 +1444,10 @@
|
||||||
title: "Disable",
|
title: "Disable",
|
||||||
value: "disable"
|
value: "disable"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
isHidden: function() {
|
||||||
|
return Page.values["tor"] === "always";
|
||||||
|
}
|
||||||
});
|
});
|
||||||
section.items.push({
|
section.items.push({
|
||||||
title: "Custom socks proxy address for trackers",
|
title: "Custom socks proxy address for trackers",
|
||||||
|
@ -1707,7 +1704,6 @@
|
||||||
|
|
||||||
}).call(this);
|
}).call(this);
|
||||||
|
|
||||||
|
|
||||||
/* ---- UiConfig.coffee ---- */
|
/* ---- UiConfig.coffee ---- */
|
||||||
|
|
||||||
|
|
||||||
|
@ -1942,4 +1938,4 @@
|
||||||
|
|
||||||
window.Page.createProjector();
|
window.Page.createProjector();
|
||||||
|
|
||||||
}).call(this);
|
}).call(this);
|
Loading…
Reference in a new issue