mirror of https://github.com/apache/cloudstack.git
bug 7539: Template page, ISO page - when isready == false, do not show Download Template/ISO option.
This commit is contained in:
parent
6b1e4d92ef
commit
676b2e74aa
|
|
@ -341,7 +341,7 @@ function isoJsonToDetailsTab() {
|
|||
*/
|
||||
|
||||
// "Download ISO", "Delete ISO"
|
||||
if (((isUser() && jsonObj.ispublic == true && !(jsonObj.domainid == g_domainid && jsonObj.account == g_account))) || (jsonObj.isready == false && jsonObj.isostatus != null && jsonObj.isostatus.indexOf("% Downloaded") != -1)) {
|
||||
if (((isUser() && jsonObj.ispublic == true && !(jsonObj.domainid == g_domainid && jsonObj.account == g_account))) || (jsonObj.isready == false)) {
|
||||
//do nothing
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
|
|
@ -336,7 +336,7 @@ function templateJsonToDetailsTab() {
|
|||
|
||||
// "Download Template", "Delete Template"
|
||||
if (((isUser() && jsonObj.ispublic == true && !(jsonObj.domainid == g_domainid && jsonObj.account == g_account)))
|
||||
|| (jsonObj.isready == false && jsonObj.templatestatus != null && jsonObj.templatestatus.indexOf("% Downloaded") != -1) || jsonObj.templatetype == "SYSTEM") {
|
||||
|| (jsonObj.isready == false) || jsonObj.templatetype == "SYSTEM") {
|
||||
//do nothing
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue