Skip to content

Commit 27bfd62

Browse files
author
Jessica Wang
committed
delete template action, delete ISO action - use 'remove' instead of 'destroy' since their definitions have been switched.
1 parent 9f260fb commit 27bfd62

2 files changed

Lines changed: 8 additions & 20 deletions

File tree

‎ui/scripts/storage.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@
786786
}
787787
},
788788

789-
'remove': {
789+
remove: {
790790
label: 'label.action.delete.volume',
791791
messages: {
792792
confirm: function(args) {
@@ -1089,7 +1089,7 @@
10891089
}
10901090
},
10911091

1092-
'remove': {
1092+
remove: {
10931093
label: 'label.action.delete.snapshot',
10941094
messages: {
10951095
confirm: function(args) {

‎ui/scripts/templates.js‎

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@
503503
}
504504
},
505505

506-
'delete': {
506+
remove: {
507507
label: 'label.action.delete.template',
508508
messages: {
509509
confirm: function(args) {
@@ -526,13 +526,7 @@
526526
var jid = json.deletetemplateresponse.jobid;
527527
args.response.success(
528528
{_custom:
529-
{jobId: jid,
530-
getUpdatedItem: function(json) {
531-
return {}; //nothing in this template needs to be updated, in fact, this whole template has being deleted
532-
},
533-
getActionFilter: function() {
534-
return templateActionfilter;
535-
}
529+
{jobId: jid
536530
}
537531
}
538532
);
@@ -1037,7 +1031,7 @@
10371031
}
10381032
},
10391033

1040-
'delete': {
1034+
remove: {
10411035
label: 'label.action.delete.ISO',
10421036
messages: {
10431037
confirm: function(args) {
@@ -1060,13 +1054,7 @@
10601054
var jid = json.deleteisosresponse.jobid;
10611055
args.response.success(
10621056
{_custom:
1063-
{jobId: jid,
1064-
getUpdatedItem: function(json) {
1065-
return {}; //nothing in this ISO needs to be updated, in fact, this whole ISO has being deleted
1066-
},
1067-
getActionFilter: function() {
1068-
return isoActionfilter;
1069-
}
1057+
{jobId: jid
10701058
}
10711059
}
10721060
);
@@ -1224,7 +1212,7 @@
12241212
//do nothing
12251213
}
12261214
else {
1227-
allowedActions.push("delete");
1215+
allowedActions.push("remove");
12281216
}
12291217

12301218
return allowedActions;
@@ -1284,7 +1272,7 @@
12841272
//do nothing
12851273
}
12861274
else {
1287-
allowedActions.push("delete");
1275+
allowedActions.push("remove");
12881276
}
12891277

12901278
return allowedActions;

0 commit comments

Comments
 (0)