mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Add Volume, Download Volume action - change UI to show error text (English, non-localized) instead of error code(530, 531) when API call returns error.
This commit is contained in:
parent
395ed04b50
commit
e86723e194
@ -177,7 +177,8 @@ function afterLoadVolumeJSP() {
|
||||
bindClickToMidMenu($midmenuItem1, volumeToRightPanel, getMidmenuId);
|
||||
afterAddingMidMenuItem($midmenuItem1, true);
|
||||
} else if (result.jobstatus == 2) {
|
||||
afterAddingMidMenuItem($midmenuItem1, false, g_dictionary["label.adding.failed"]);
|
||||
//afterAddingMidMenuItem($midmenuItem1, false, g_dictionary["label.adding.failed"]);
|
||||
afterAddingMidMenuItem($midmenuItem1, false, fromdb(result.jobresult.errortext));
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -620,7 +621,8 @@ function doDownloadVolume($actionLink, $detailsTab, $midmenuItem1) {
|
||||
$infoContainer.find("#info").html(htmlMsg);
|
||||
$infoContainer.show();
|
||||
} else if (result.jobstatus == 2) { // Failed
|
||||
var errorMsg = g_dictionary["label.failed"] + " - " + g_dictionary["label.error.code"] + " " + fromdb(result.jobresult.errorcode);
|
||||
//var errorMsg = g_dictionary["label.failed"] + " - " + g_dictionary["label.error.code"] + " " + fromdb(result.jobresult.errorcode);
|
||||
var errorMsg = g_dictionary["label.failed"] + " - " + fromdb(result.jobresult.errortext);
|
||||
handleErrorInDialog2(errorMsg, $dialogDownloadVolume);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user