Trigger the received random event name

parent 3b24b87a
......@@ -131,6 +131,7 @@
},
props: {
singleModal: {type: Boolean},
eventName: {},
},
data() {
return {
......@@ -225,7 +226,7 @@
this.fetchFolderBreadcrumb(scope.row.id);
},
insertMedia(scope) {
this.$events.emit('fileWasSelected', scope.row);
this.$events.emit(this.eventName, scope.row);
},
handleSelectionChange(selectedMedia) {
this.selectedMedia = selectedMedia;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment