From fd1ef163dc2727c01dbc9f74c5c5d2d630a742b6 Mon Sep 17 00:00:00 2001 From: Phan An Date: Fri, 8 Jul 2022 12:32:44 +0200 Subject: [PATCH] feat: better context menu implementation --- resources/assets/js/App.vue | 40 ++++------------ .../js/components/album/AlbumCard.spec.ts | 47 +++++++++++-------- .../js/components/album/AlbumContextMenu.vue | 10 ++-- .../components/artist/ArtistContextMenu.vue | 10 ++-- .../js/components/song/SongContextMenu.vue | 11 +++-- .../assets/js/composables/useContextMenu.ts | 6 +-- 6 files changed, 62 insertions(+), 62 deletions(-) diff --git a/resources/assets/js/App.vue b/resources/assets/js/App.vue index 386402ef..d4f4e191 100644 --- a/resources/assets/js/App.vue +++ b/resources/assets/js/App.vue @@ -15,13 +15,16 @@ - - - + + + diff --git a/resources/assets/js/components/artist/ArtistContextMenu.vue b/resources/assets/js/components/artist/ArtistContextMenu.vue index bb321db5..9f9cf568 100644 --- a/resources/assets/js/components/artist/ArtistContextMenu.vue +++ b/resources/assets/js/components/artist/ArtistContextMenu.vue @@ -16,15 +16,16 @@ diff --git a/resources/assets/js/components/song/SongContextMenu.vue b/resources/assets/js/components/song/SongContextMenu.vue index 3862dc60..dc19e2ce 100644 --- a/resources/assets/js/components/song/SongContextMenu.vue +++ b/resources/assets/js/components/song/SongContextMenu.vue @@ -42,8 +42,8 @@ diff --git a/resources/assets/js/composables/useContextMenu.ts b/resources/assets/js/composables/useContextMenu.ts index 51b64bf5..685ad98f 100644 --- a/resources/assets/js/composables/useContextMenu.ts +++ b/resources/assets/js/composables/useContextMenu.ts @@ -21,11 +21,11 @@ export const useContextMenu = () => { } return { - base, ContextMenuBase, + base, + context, open, close, - trigger, - context + trigger } }