mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
cloudstack 3.0 UI - delete zone, delete pod, delete clouster in detailView - after action is finished, remove detailView and remove corresponding row from listView.
This commit is contained in:
parent
2fb4a97837
commit
595b7e5c04
@ -3288,7 +3288,7 @@
|
||||
}
|
||||
},
|
||||
|
||||
'delete': {
|
||||
'remove': {
|
||||
label: 'label.action.delete.zone',
|
||||
messages: {
|
||||
confirm: function(args) {
|
||||
@ -4583,7 +4583,7 @@
|
||||
}
|
||||
},
|
||||
|
||||
'delete': {
|
||||
'remove': {
|
||||
label: 'label.delete' ,
|
||||
messages: {
|
||||
confirm: function(args) {
|
||||
@ -5014,7 +5014,7 @@
|
||||
}
|
||||
},
|
||||
|
||||
'delete': {
|
||||
'remove': {
|
||||
label: 'label.action.delete.cluster' ,
|
||||
messages: {
|
||||
confirm: function(args) {
|
||||
@ -5561,7 +5561,7 @@
|
||||
}
|
||||
},
|
||||
|
||||
'delete': {
|
||||
'remove': {
|
||||
label: 'label.action.remove.host' ,
|
||||
messages: {
|
||||
notification: function(args) {
|
||||
@ -6240,7 +6240,7 @@
|
||||
}
|
||||
},
|
||||
|
||||
'delete': {
|
||||
'remove': {
|
||||
label: 'label.action.delete.primary.storage' ,
|
||||
messages: {
|
||||
confirm: function(args) {
|
||||
@ -6428,7 +6428,7 @@
|
||||
detailView: {
|
||||
name: 'Secondary storage details',
|
||||
actions: {
|
||||
destroy: {
|
||||
remove: {
|
||||
label: 'label.action.delete.secondary.storage' ,
|
||||
messages: {
|
||||
confirm: function(args) {
|
||||
@ -6542,7 +6542,7 @@
|
||||
}
|
||||
},
|
||||
|
||||
'delete': {
|
||||
'remove': {
|
||||
label: 'label.remove.ip.range' ,
|
||||
messages: {
|
||||
confirm: function(args) {
|
||||
@ -7147,7 +7147,7 @@
|
||||
allowedActions.push("enable");
|
||||
else if(jsonObj.allocationstate == "Enabled")
|
||||
allowedActions.push("disable");
|
||||
allowedActions.push("delete");
|
||||
allowedActions.push("remove");
|
||||
return allowedActions;
|
||||
}
|
||||
|
||||
@ -7159,7 +7159,7 @@
|
||||
allowedActions.push("enable");
|
||||
else if(podObj.allocationstate == "Enabled")
|
||||
allowedActions.push("disable");
|
||||
allowedActions.push("delete");
|
||||
allowedActions.push("remove");
|
||||
|
||||
/*
|
||||
var selectedZoneObj;
|
||||
@ -7205,7 +7205,7 @@
|
||||
allowedActions.push("manage");
|
||||
}
|
||||
|
||||
allowedActions.push("delete");
|
||||
allowedActions.push("remove");
|
||||
|
||||
return allowedActions;
|
||||
}
|
||||
@ -7231,11 +7231,11 @@
|
||||
else if (jsonObj.resourcestate == "Maintenance") {
|
||||
allowedActions.push("edit");
|
||||
allowedActions.push("cancelMaintenanceMode");
|
||||
allowedActions.push("delete");
|
||||
allowedActions.push("remove");
|
||||
}
|
||||
else if (jsonObj.resourcestate == "Disabled"){
|
||||
allowedActions.push("edit");
|
||||
allowedActions.push("delete");
|
||||
allowedActions.push("remove");
|
||||
}
|
||||
return allowedActions;
|
||||
}
|
||||
@ -7251,10 +7251,10 @@
|
||||
}
|
||||
else if(jsonObj.state == 'Down') {
|
||||
allowedActions.push("enableMaintenanceMode");
|
||||
allowedActions.push("delete");
|
||||
allowedActions.push("remove");
|
||||
}
|
||||
else if(jsonObj.state == "Alert") {
|
||||
allowedActions.push("delete");
|
||||
allowedActions.push("remove");
|
||||
}
|
||||
else if (jsonObj.state == "ErrorInMaintenance") {
|
||||
allowedActions.push("enableMaintenanceMode");
|
||||
@ -7265,10 +7265,10 @@
|
||||
}
|
||||
else if (jsonObj.state == "Maintenance") {
|
||||
allowedActions.push("cancelMaintenanceMode");
|
||||
allowedActions.push("delete");
|
||||
allowedActions.push("remove");
|
||||
}
|
||||
else if (jsonObj.state == "Disconnected"){
|
||||
allowedActions.push("delete");
|
||||
allowedActions.push("remove");
|
||||
}
|
||||
return allowedActions;
|
||||
}
|
||||
@ -7276,7 +7276,7 @@
|
||||
var secondarystorageActionfilter = function(args) {
|
||||
var jsonObj = args.context.item;
|
||||
var allowedActions = [];
|
||||
allowedActions.push("destroy");
|
||||
allowedActions.push("remove");
|
||||
return allowedActions;
|
||||
}
|
||||
|
||||
@ -7287,15 +7287,6 @@
|
||||
return allowedActions;
|
||||
}
|
||||
|
||||
var directNetworkActionfilter = function(args) {
|
||||
var jsonObj = args.context.item;
|
||||
var allowedActions = [];
|
||||
allowedActions.push("addIpRange");
|
||||
allowedActions.push("edit");
|
||||
allowedActions.push("delete");
|
||||
return allowedActions;
|
||||
}
|
||||
|
||||
var routerActionfilter = function(args) {
|
||||
var jsonObj = args.context.item;
|
||||
var allowedActions = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user