mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Authorize Security Group Rule, Download Template, Download ISO 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
e86723e194
commit
592cfc6b73
@ -732,7 +732,8 @@ function doDownloadISO($actionLink, $detailsTab, $midmenuItem1) {
|
||||
$infoContainer.find("#info").html(htmlMsg2);
|
||||
$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, $dialogDownloadISO);
|
||||
}
|
||||
}
|
||||
|
||||
@ -309,8 +309,8 @@ function initAddIngressRuleDialog() {
|
||||
}
|
||||
}
|
||||
} else if (result.jobstatus == 2) { // Failed
|
||||
//var errorMsg = fromdb(result.jobresult.errortext);
|
||||
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, $thisDialog);
|
||||
}
|
||||
}
|
||||
|
||||
@ -766,7 +766,8 @@ function doDownloadTemplate($actionLink, $detailsTab, $midmenuItem1) {
|
||||
$infoContainer.find("#info").html(htmlMsg2);
|
||||
$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, $dialogDownloadTemplate);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user