From 3d4f0afe8b3b0fb99b8db5b3be418e0067b87ccd Mon Sep 17 00:00:00 2001 From: booploops <49113086+booploops@users.noreply.github.com> Date: Thu, 13 Jan 2022 04:54:11 -0800 Subject: [PATCH] improvements to add to library on list item --- src/renderer/index.js | 2 +- .../views/components/mediaitem-list-item.ejs | 55 ++++++++++++++++++- 2 files changed, 53 insertions(+), 4 deletions(-) diff --git a/src/renderer/index.js b/src/renderer/index.js index b158712d..607ae76a 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -2571,7 +2571,7 @@ const app = new Vue({ if (type.slice(-1) != "s") { type += "s" } - let id = item.playParams.catalogId ? item.playParams.catalogId : item.id + let id = item.attributes.playParams.catalogId ?? item.id let index = types.findIndex(function (type) { return type.type == this diff --git a/src/renderer/views/components/mediaitem-list-item.ejs b/src/renderer/views/components/mediaitem-list-item.ejs index d7b39fa7..c399c7d1 100644 --- a/src/renderer/views/components/mediaitem-list-item.ejs +++ b/src/renderer/views/components/mediaitem-list-item.ejs @@ -9,13 +9,17 @@ :data-islibrary="this.item.attributes.playParams.isLibrary ?? false" :key="item.attributes.playParams.id ?? item.id" class="cd-mediaitem-list-item" + @mouseenter="checkLibrary" + @mouseover="showInLibrary = true" + @mouseleave="showInLibrary = false" :class="[{'mediaitem-selected': app.select_hasMediaItem(guid)}, addClasses]">