mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-3651: errortext in listVmwareDcs API response has been changed. Change UI to override error handling of listVmwareDcs API regardless of the content of errortext in API response.
This commit is contained in:
parent
482c425193
commit
037c6958b8
@ -6488,12 +6488,7 @@
|
||||
selectedZoneObj.vmwaredcId = vmwaredcs[0].id;
|
||||
}
|
||||
},
|
||||
error: function(XMLHttpResponse) { //override default error handling: cloudStack.dialog.notice({ message: parseXMLHttpResponse(XMLHttpResponse)});
|
||||
if(parseXMLHttpResponse(XMLHttpResponse) == 'The given command does not exist or it is not available for user')
|
||||
return; //do nothing
|
||||
else
|
||||
cloudStack.dialog.notice({ message: parseXMLHttpResponse(XMLHttpResponse)}); //pop up error dialog box if the error is not 'The given command does not exist or it is not available for user'
|
||||
}
|
||||
error: function(XMLHttpResponse) {} //override default error handling: cloudStack.dialog.notice({ message: parseXMLHttpResponse(XMLHttpResponse)});
|
||||
});
|
||||
|
||||
// for testing only (begin)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user