diff --git a/src/ui/templates/setting_checkbox.html b/src/ui/templates/setting_checkbox.html index 0bef9eb9a..6ce9f15f1 100644 --- a/src/ui/templates/setting_checkbox.html +++ b/src/ui/templates/setting_checkbox.html @@ -16,7 +16,7 @@ id="{{ inp_name_mult }}" name="{{ inp_name_mult }}" data-default-method="{% if inp_name in ['AUTOCONF_MODE', 'SWARM_MODE', 'KUBERNETES_MODE'] %}mode{% else %}{{ global_config_method }}{% endif %}" - data-default-value="{{ global_config[inp_name]['value'] }}" + data-default-value="{{ global_config_value }}" {% if inp_name in ['AUTOCONF_MODE', 'SWARM_MODE', 'KUBERNETES_MODE'] or global_config_method != 'ui' and global_config_method != 'default' or is_read_only %} disabled {% endif %} data-checked="{% if global_config_value == "yes" %}true{% else %}false{% endif %}" {% if global_config_value == "yes" %}checked{% endif %}