Hide trackers proxy settings if tor always set on /Config page

This commit is contained in:
shortcutme 2019-08-23 03:40:44 +02:00
parent ab9fe173a8
commit d1fb4067e7
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
2 changed files with 8 additions and 10 deletions

View File

@ -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"
@ -154,4 +156,4 @@ class ConfigStorage extends Class
@items.push(section)
return section
window.ConfigStorage = ConfigStorage
window.ConfigStorage = ConfigStorage

View File

@ -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 ---- */
@ -1942,4 +1938,4 @@
window.Page.createProjector();
}).call(this);
}).call(this);