1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-21 18:03:38 +03:00

Timeouts feedback for vCenter resources importation (#2117)

This commit is contained in:
Abel Coronado 2018-05-23 12:27:11 +02:00 committed by Tino Vázquez
parent 2221717538
commit ad5f6ff4cf
4 changed files with 20 additions and 4 deletions

View File

@ -180,7 +180,11 @@ define(function(require) {
$("#get-vcenter-ds").click();
},
error: function (request, error_json) {
if (request.responseJSON === undefined){
Notifier.notifyError("Empty response received from server. Check your setup to avoid timeouts");
} else {
Notifier.notifyError(request.responseJSON.error.message);
}
$("#get-vcenter-ds").click();
}
});

View File

@ -176,7 +176,11 @@ define(function(require) {
$("#get-vcenter-images").click();
},
error: function (request, error_json) {
if (request.responseJSON === undefined){
Notifier.notifyError("Empty response received from server. Check your setup to avoid timeouts");
} else {
Notifier.notifyError(request.responseJSON.error.message);
}
$("#get-vcenter-images").click();
}
});

View File

@ -302,7 +302,11 @@ define(function(require) {
$("#get-vcenter-networks").click();
},
error: function(request, error_json){
if (request.responseJSON === undefined){
Notifier.notifyError("Empty response received from server. Check your setup to avoid timeouts");
} else {
Notifier.notifyError(request.responseJSON.error.message);
}
$("#get-vcenter-networks").click();
}
});

View File

@ -250,7 +250,11 @@ define(function(require) {
$("#get-vcenter-templates").click();
},
error: function(request, error_json){
if (request.responseJSON === undefined){
Notifier.notifyError("Empty response received from server. Check your setup to avoid timeouts");
} else {
Notifier.notifyError(request.responseJSON.error.message);
}
$("#get-vcenter-templates").click();
}
});