diff --git a/resources/cider-ui-tests/index.js b/resources/cider-ui-tests/index.js index 1744472e..c6ca07f0 100644 --- a/resources/cider-ui-tests/index.js +++ b/resources/cider-ui-tests/index.js @@ -606,7 +606,10 @@ const app = new Vue({ let self = this let library = [] let downloaded = null; - if ((this.library.songs.downloadState == 2 || this.library.songs.downloadState == 1) && !force) { + if ((this.library.songs.downloadState == 2) && !force) { + return + } + if(this.library.songs.downloadState == 1) { return } if (localStorage.getItem("librarySongs") != null) { @@ -824,6 +827,12 @@ const app = new Vue({ }) } }, + addToLibrary(id) { + let self = this + this.mk.addToLibrary(id).then((data)=>{ + self.getLibrarySongsFull(true) + }) + }, loadMXM() { let attempt = 0; const track = encodeURIComponent((this.mk.nowPlayingItem != null) ? this.mk.nowPlayingItem.title ?? '' : ''); diff --git a/resources/cider-ui-tests/views/components/mediaitem-list-item.ejs b/resources/cider-ui-tests/views/components/mediaitem-list-item.ejs index d1acf5d4..38b2d09e 100644 --- a/resources/cider-ui-tests/views/components/mediaitem-list-item.ejs +++ b/resources/cider-ui-tests/views/components/mediaitem-list-item.ejs @@ -1,12 +1,10 @@