mirror of
https://github.com/apache/nifi.git
synced 2025-02-16 15:06:00 +00:00
NIFI-777:
- Ensuring the account request form is shown. (cherry picked from commit a19390cdecfd85f1b165f95cb4901b9366e627a0)
This commit is contained in:
parent
106d5dbdc5
commit
8d0b1ef1f5
@ -184,6 +184,16 @@ nf.Common = {
|
||||
* @argument {string} error The error
|
||||
*/
|
||||
handleAjaxError: function (xhr, status, error) {
|
||||
// show the account registration page if necessary
|
||||
if (xhr.status === 401 && $('#registration-pane').length) {
|
||||
// show the registration pane
|
||||
$('#registration-pane').show();
|
||||
|
||||
// close the canvas
|
||||
nf.Common.closeCanvas();
|
||||
return;
|
||||
}
|
||||
|
||||
// if an error occurs while the splash screen is visible close the canvas show the error message
|
||||
if ($('#splash').is(':visible')) {
|
||||
$('#message-title').text('An unexpected error has occurred');
|
||||
@ -207,12 +217,6 @@ nf.Common = {
|
||||
dialogContent: nf.Common.escapeHtml(xhr.responseText),
|
||||
overlayBackground: false
|
||||
});
|
||||
} else if (xhr.status === 401 && $('#registration-pane').length) {
|
||||
// show the registration pane
|
||||
$('#registration-pane').show();
|
||||
|
||||
// close the canvas
|
||||
nf.Common.closeCanvas();
|
||||
} else {
|
||||
if (xhr.status < 99 || xhr.status === 12007 || xhr.status === 12029) {
|
||||
var content = 'Please ensure the application is running and check the logs for any errors.';
|
||||
|
Loading…
x
Reference in New Issue
Block a user