mirror of https://github.com/apache/cloudstack.git
switch definition of 'destroy' action with definition of 'remove' action. i.e. 'remove' action will hide detailView and remove corresponding row from listView after action is done. [reviewed-by: Brian]
This commit is contained in:
parent
a3666cb09b
commit
53c8e4fcad
|
|
@ -8340,12 +8340,14 @@ div.panel.ui-dialog div.list-view div.fixed-header {
|
|||
}
|
||||
|
||||
.destroy .icon,
|
||||
.remove .icon,
|
||||
.delete .icon,
|
||||
.decline .icon {
|
||||
background-position: 1px -92px;
|
||||
}
|
||||
|
||||
.destroy:hover .icon,
|
||||
.remove:hover .icon,
|
||||
.delete:hover .icon {
|
||||
background-position: 1px -674px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@
|
|||
}
|
||||
},
|
||||
|
||||
'delete': {
|
||||
remove: {
|
||||
label: 'label.action.delete.service.offering',
|
||||
messages: {
|
||||
confirm: function(args) {
|
||||
|
|
@ -542,7 +542,7 @@
|
|||
}
|
||||
},
|
||||
|
||||
'delete': {
|
||||
remove: {
|
||||
label: 'label.action.delete.system.service.offering',
|
||||
messages: {
|
||||
confirm: function(args) {
|
||||
|
|
@ -814,7 +814,7 @@
|
|||
}
|
||||
},
|
||||
|
||||
'delete': {
|
||||
remove: {
|
||||
label: 'label.action.delete.disk.offering',
|
||||
messages: {
|
||||
confirm: function(args) {
|
||||
|
|
@ -1627,7 +1627,7 @@
|
|||
var jsonObj = args.context.item;
|
||||
var allowedActions = [];
|
||||
allowedActions.push("edit");
|
||||
allowedActions.push("delete");
|
||||
allowedActions.push("remove");
|
||||
return allowedActions;
|
||||
};
|
||||
|
||||
|
|
@ -1635,7 +1635,7 @@
|
|||
var jsonObj = args.context.item;
|
||||
var allowedActions = [];
|
||||
allowedActions.push("edit");
|
||||
allowedActions.push("delete");
|
||||
allowedActions.push("remove");
|
||||
return allowedActions;
|
||||
};
|
||||
|
||||
|
|
@ -1643,7 +1643,7 @@
|
|||
var jsonObj = args.context.item;
|
||||
var allowedActions = [];
|
||||
allowedActions.push("edit");
|
||||
allowedActions.push("delete");
|
||||
allowedActions.push("remove");
|
||||
return allowedActions;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@
|
|||
}
|
||||
},
|
||||
|
||||
destroy: function($detailView, args) {
|
||||
remove: function($detailView, args) {
|
||||
uiActions.standard($detailView, args, {
|
||||
noRefresh: true,
|
||||
complete: function(args) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue