mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
ISO page - make Delete ISO available as long as the ISO is not in downloaded status.
This commit is contained in:
parent
39f75887b1
commit
08abc5970d
@ -337,16 +337,24 @@ function isoJsonToDetailsTab() {
|
||||
}
|
||||
*/
|
||||
|
||||
// "Download ISO", "Delete ISO"
|
||||
// "Download ISO"
|
||||
if (((isUser() && jsonObj.ispublic == true && !(jsonObj.domainid == g_domainid && jsonObj.account == g_account))) || (jsonObj.isready == false)) {
|
||||
//do nothing
|
||||
}
|
||||
else {
|
||||
buildActionLinkForTab("Download ISO", isoActionMap, $actionMenu, $midmenuItem1, $thisTab);
|
||||
buildActionLinkForTab("Delete ISO", isoActionMap, $actionMenu, $midmenuItem1, $thisTab);
|
||||
buildActionLinkForTab("Download ISO", isoActionMap, $actionMenu, $midmenuItem1, $thisTab);
|
||||
noAvailableActions = false;
|
||||
}
|
||||
|
||||
// "Delete ISO"
|
||||
if (((isUser() && jsonObj.ispublic == true && !(jsonObj.domainid == g_domainid && jsonObj.account == g_account))) || (jsonObj.isready == false && jsonObj.status != null && jsonObj.status.indexOf("Downloaded") != -1)) {
|
||||
//do nothing
|
||||
}
|
||||
else {
|
||||
buildActionLinkForTab("Delete ISO", isoActionMap, $actionMenu, $midmenuItem1, $thisTab);
|
||||
noAvailableActions = false;
|
||||
}
|
||||
|
||||
// no available actions
|
||||
if(noAvailableActions == true) {
|
||||
$actionMenu.find("#action_list").append($("#no_available_actions").clone().show());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user