Change offline mode in /Config page

This commit is contained in:
shortcutme 2019-04-15 15:12:08 +02:00
parent b82f57e7a2
commit be584aa3d1
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
3 changed files with 12 additions and 3 deletions

View File

@ -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"

View File

@ -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",

View File

@ -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()