2019-06-21 02:13:14 +02:00
|
|
|
MediaHandlers.file = Vue.extend({
|
|
|
|
props: {
|
|
|
|
bus: { type: Object },
|
|
|
|
iconClass: {
|
|
|
|
type: String,
|
|
|
|
default: 'fa fa-hdd',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
|
|
dropdownItems: function() {
|
|
|
|
return [
|
|
|
|
{
|
|
|
|
text: 'Play',
|
|
|
|
icon: 'play',
|
|
|
|
action: this.play,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
text: 'Download',
|
|
|
|
icon: 'download',
|
|
|
|
action: this.download,
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
text: 'View info',
|
|
|
|
icon: 'info',
|
|
|
|
action: this.info,
|
|
|
|
},
|
|
|
|
];
|
|
|
|
},
|
|
|
|
},
|
2019-06-15 00:51:48 +02:00
|
|
|
|
2019-06-21 02:13:14 +02:00
|
|
|
methods: {
|
|
|
|
play: function(item) {
|
|
|
|
this.bus.$emit('play', item);
|
2019-06-16 21:45:21 +02:00
|
|
|
},
|
|
|
|
|
2019-06-21 02:13:14 +02:00
|
|
|
download: function(item) {
|
2019-06-16 21:45:21 +02:00
|
|
|
},
|
|
|
|
|
2019-06-21 02:13:14 +02:00
|
|
|
info: function(item) {
|
2019-06-16 21:45:21 +02:00
|
|
|
},
|
2019-06-21 02:13:14 +02:00
|
|
|
},
|
|
|
|
});
|
2019-06-15 00:51:48 +02:00
|
|
|
|