Added toasts to Add and Remove from library.

This commit is contained in:
cryptofyre 2022-02-05 00:16:14 -06:00
parent a4bfa72ba7
commit 75b81cc314

View file

@ -2331,6 +2331,7 @@ const app = new Vue({
this.mk.addToLibrary(id).then((data) => { this.mk.addToLibrary(id).then((data) => {
self.getLibrarySongsFull(true) self.getLibrarySongsFull(true)
}) })
notyf.success('Added to library.');
}, },
removeFromLibrary(kind, id) { removeFromLibrary(kind, id) {
let self = this let self = this
@ -2342,6 +2343,7 @@ const app = new Vue({
}).then((data) => { }).then((data) => {
self.getLibrarySongsFull(true) self.getLibrarySongsFull(true)
}) })
notyf.success('Removed from library.')
}, },
async loadYTLyrics() { async loadYTLyrics() {
const track = (this.mk.nowPlayingItem != null) ? this.mk.nowPlayingItem.title ?? '' : ''; const track = (this.mk.nowPlayingItem != null) ? this.mk.nowPlayingItem.title ?? '' : '';