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