mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
www/caddy: style sweep
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
|
||||
/**
|
||||
* Shows a BootstrapDialog alert with custom settings.
|
||||
*
|
||||
*
|
||||
* @param {string} type - Type of the dialog based on BootstrapDialog types.
|
||||
* @param {string} title - Title of the dialog.
|
||||
* @param {string} message - Message to be displayed in the dialog.
|
||||
@@ -151,7 +151,7 @@
|
||||
.custom-style .display-area {
|
||||
overflow-y: scroll;
|
||||
/* Dynamic height management using clamp for varying screen sizes */
|
||||
height: clamp(50px, 50vh, 4000px);
|
||||
height: clamp(50px, 50vh, 4000px);
|
||||
margin-bottom: 20px; /* Adds bottom margin to separate from the help text */
|
||||
}
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
dfObj.reject(); // AJAX request failed
|
||||
}
|
||||
});
|
||||
},
|
||||
},
|
||||
false, // disable_dialog: Show the dialog with the validation error
|
||||
function(errorData) { // callback_fail: What to do when save fails
|
||||
// Handle failure due to validation errors or other issues
|
||||
@@ -113,7 +113,7 @@
|
||||
function() { // callback_ok: What to do when save is successful
|
||||
showAlert("{{ lang._('Configuration saved successfully. Please do not forget to apply the configuration.') }}", "{{ lang._('Save Success') }}");
|
||||
dfObj.resolve();
|
||||
},
|
||||
},
|
||||
false, // disable_dialog: Show the dialog with the validation error
|
||||
function(errorData) { // callback_fail: What to do when save fails
|
||||
showAlert("{{ lang._('Configuration save failed: ') }}" + (errorData.message || "{{ lang._('Validation Error') }}"), "{{ lang._('Error') }}");
|
||||
|
||||
@@ -83,4 +83,3 @@ if __name__ == "__main__":
|
||||
else:
|
||||
# Output error details in JSON format if no action is specified
|
||||
print(json.dumps({"error": "No Action Specified", "message": "No action specified"}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user