platypush/platypush/backend/http/static/js/plugins/media/handlers/torrent.js

46 lines
901 B
JavaScript

MediaHandlers.torrent = Vue.extend({
props: {
bus: { type: Object },
iconClass: {
type: String,
default: 'fa fa-magnet',
},
},
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,
},
];
},
},
methods: {
play: function(item) {
},
download: function(item) {
},
info: function(item) {
},
},
});