Skip to content

Commit

Permalink
[IMP] Spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
c8y3 committed Oct 18, 2024
1 parent 7854471 commit a011e4b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions ui/src/pages/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,19 +307,19 @@ function set_page_warning(msg) {
}

function api_error(propagate_api_error) {
if (propagate_api_error) {
if(jqXHR.responseJSON && jqXHR.status == 400) {
propagate_form_api_errors(jqXHR.responseJSON.data);
} else {
ajax_notify_error(jqXHR, this.url);
}
} else {
if(jqXHR.responseJSON) {
notify_error(jqXHR.responseJSON.message);
} else {
ajax_notify_error(jqXHR, this.url);
}
}
if (propagate_api_error) {
if(jqXHR.responseJSON && jqXHR.status == 400) {
propagate_form_api_errors(jqXHR.responseJSON.data);
} else {
ajax_notify_error(jqXHR, this.url);
}
} else {
if(jqXHR.responseJSON) {
notify_error(jqXHR.responseJSON.message);
} else {
ajax_notify_error(jqXHR, this.url);
}
}
}

function sendBefore(beforeSend_fn, settings) {
Expand Down

0 comments on commit a011e4b

Please sign in to comment.