Change offline mode in /Config page
This commit is contained in:
parent
b82f57e7a2
commit
be584aa3d1
3 changed files with 12 additions and 3 deletions
|
@ -46,6 +46,11 @@ class ConfigStorage extends Class
|
|||
|
||||
# Network
|
||||
section = @createSection("Network")
|
||||
section.items.push
|
||||
key: "offline"
|
||||
title: "Offline mode"
|
||||
type: "checkbox"
|
||||
description: "Disable network communication."
|
||||
|
||||
section.items.push
|
||||
key: "fileserver_ip_type"
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
|
||||
|
||||
/* ---- plugins/UiConfig/media/js/lib/Class.coffee ---- */
|
||||
|
||||
|
||||
|
@ -963,7 +962,6 @@
|
|||
}));
|
||||
|
||||
|
||||
|
||||
/* ---- plugins/UiConfig/media/js/utils/Animation.coffee ---- */
|
||||
|
||||
|
||||
|
@ -1358,6 +1356,12 @@
|
|||
type: "checkbox"
|
||||
});
|
||||
section = this.createSection("Network");
|
||||
section.items.push({
|
||||
key: "offline",
|
||||
title: "Offline mode",
|
||||
type: "checkbox",
|
||||
description: "Disable network communication."
|
||||
});
|
||||
section.items.push({
|
||||
key: "fileserver_ip_type",
|
||||
title: "File server network",
|
||||
|
|
|
@ -20,7 +20,7 @@ class Config(object):
|
|||
self.need_restart = False
|
||||
self.keys_api_change_allowed = set([
|
||||
"tor", "fileserver_port", "language", "tor_use_bridges", "trackers_proxy", "trackers",
|
||||
"trackers_file", "open_browser", "log_level", "fileserver_ip_type", "ip_external"
|
||||
"trackers_file", "open_browser", "log_level", "fileserver_ip_type", "ip_external", "offline"
|
||||
])
|
||||
self.keys_restart_need = set(["tor", "fileserver_port", "fileserver_ip_type"])
|
||||
self.start_dir = self.getStartDir()
|
||||
|
|
Loading…
Reference in a new issue