Trigger the received random event name

parent 3b24b87a
...@@ -131,6 +131,7 @@ ...@@ -131,6 +131,7 @@
}, },
props: { props: {
singleModal: {type: Boolean}, singleModal: {type: Boolean},
eventName: {},
}, },
data() { data() {
return { return {
...@@ -225,7 +226,7 @@ ...@@ -225,7 +226,7 @@
this.fetchFolderBreadcrumb(scope.row.id); this.fetchFolderBreadcrumb(scope.row.id);
}, },
insertMedia(scope) { insertMedia(scope) {
this.$events.emit('fileWasSelected', scope.row); this.$events.emit(this.eventName, scope.row);
}, },
handleSelectionChange(selectedMedia) { handleSelectionChange(selectedMedia) {
this.selectedMedia = 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