From 81d65c28851437ad28e818db73855d2e27c350f7 Mon Sep 17 00:00:00 2001 From: qier222 <68148142+qier222@users.noreply.github.com> Date: Wed, 21 Oct 2020 15:54:57 +0800 Subject: [PATCH] feat: add "Save to / remove from my Liked Songs" to track list context menu --- src/components/TrackList.vue | 50 +++++++++++++++++++++++++------- src/components/TrackListItem.vue | 20 ++----------- 2 files changed, 42 insertions(+), 28 deletions(-) diff --git a/src/components/TrackList.vue b/src/components/TrackList.vue index 5ee0077..22b4658 100644 --- a/src/components/TrackList.vue +++ b/src/components/TrackList.vue @@ -3,6 +3,12 @@
Play
Play Next
+
+ Save to my Liked Songs +
+
+ Remove from my Liked Songs +
diff --git a/src/components/TrackListItem.vue b/src/components/TrackListItem.vue index 043bc37..62ce2c8 100644 --- a/src/components/TrackListItem.vue +++ b/src/components/TrackListItem.vue @@ -3,6 +3,7 @@ class="track" :class="trackClass" :style="trackStyle" + :title="track.reason" @mouseover="focus = true" @mouseleave="focus = false" > @@ -15,7 +16,7 @@ > - {{ track.no }} + {{ track.no }}
@@ -66,7 +67,6 @@