Skip to content

Commit a9bd3b9

Browse files
authored
Merge pull request #4667 from LianaHarris360/fix-undo-remove-resource
Fix the undo selection issue in the snackbar after resource deletion
2 parents 193c1c5 + 525a1b7 commit a9bd3b9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

contentcuration/contentcuration/frontend/channelEdit/components/ContentNodeOptions.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
},
135135
{
136136
label: this.$tr('remove'),
137-
onClick: this.removeNode,
137+
onClick: () => this.removeNode([this.nodeId]),
138138
condition: this.canEdit,
139139
},
140140
],
@@ -319,10 +319,10 @@
319319
this.trackAction(`Edit ${trackActionLabel}`);
320320
};
321321
},
322-
removeNode: withChangeTracker(function(changeTracker) {
322+
removeNode: withChangeTracker(function(id__in, changeTracker) {
323323
this.trackAction('Delete');
324324
const redirect = this.getRemoveNodeRedirect();
325-
return this.moveContentNodes({ id__in: [this.nodeId], parent: this.trashId }).then(() => {
325+
return this.moveContentNodes({ id__in, parent: this.trashId }).then(() => {
326326
redirect();
327327
this.showSnackbar({
328328
text: this.$tr('removedItems'),

0 commit comments

Comments
 (0)