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:
parent
2221717538
commit
ad5f6ff4cf
@ -180,7 +180,11 @@ define(function(require) {
|
||||
$("#get-vcenter-ds").click();
|
||||
},
|
||||
error: function (request, error_json) {
|
||||
Notifier.notifyError(request.responseJSON.error.message);
|
||||
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();
|
||||
}
|
||||
});
|
||||
|
@ -176,7 +176,11 @@ define(function(require) {
|
||||
$("#get-vcenter-images").click();
|
||||
},
|
||||
error: function (request, error_json) {
|
||||
Notifier.notifyError(request.responseJSON.error.message);
|
||||
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();
|
||||
}
|
||||
});
|
||||
|
@ -302,7 +302,11 @@ define(function(require) {
|
||||
$("#get-vcenter-networks").click();
|
||||
},
|
||||
error: function(request, error_json){
|
||||
Notifier.notifyError(request.responseJSON.error.message);
|
||||
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();
|
||||
}
|
||||
});
|
||||
|
@ -250,7 +250,11 @@ define(function(require) {
|
||||
$("#get-vcenter-templates").click();
|
||||
},
|
||||
error: function(request, error_json){
|
||||
Notifier.notifyError(request.responseJSON.error.message);
|
||||
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();
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user