MusicTopus/javascripts/mon-compte/ma-collection/exporter.js
2022-10-28 22:56:04 +02:00

16 lines
337 B
JavaScript

Vue.createApp({
data() {
return {
format: "xml",
};
},
created() {},
destroyed() {},
methods: {
exportCollection(event) {
event.preventDefault();
window.open(`/api/v1/albums?exportFormat=${this.format}`, "_blank");
},
},
}).mount("#exporter");