diff --git a/src/ui/app/templates/models/plugins_settings.html b/src/ui/app/templates/models/plugins_settings.html index f7ace96a9..bccfeff35 100644 --- a/src/ui/app/templates/models/plugins_settings.html +++ b/src/ui/app/templates/models/plugins_settings.html @@ -186,24 +186,25 @@ {% set setting_method = setting_config.get("method", "default") %} {% set setting_template = setting_config.get("template", "") %} {% set disabled = setting_method not in ('ui', 'default') and (current_endpoint == "global-config" or not setting_config.get("global")) %} - {% if current_endpoint == "new" %} + {% if service_method == "autoconf" %} + {% set setting_method = "autoconf" %} + {% set disabled = true %} + {% endif %} + {% if current_endpoint == "new" or clone %} + {% set setting_method = "default" %} {% set disabled = false %} {% if setting == "SERVER_NAME" %} {% set setting_value = "" %} {% endif %} {% endif %} - {% if service_method == "autoconf" %} - {% set setting_method = "autoconf" %} + {% if is_readonly %} {% set disabled = true %} + {% set setting_method = "readonly" %} {% endif %} {% if plugin_data["type"] == "pro" and not is_pro_version %} {% set disabled = true %} {% set setting_method = "Pro feature" %} {% endif %} - {% if is_readonly %} - {% set disabled = true %} - {% set setting_method = "readonly" %} - {% endif %}