From 024db0b988766b35bdd7a3c8388bf5c46873c996 Mon Sep 17 00:00:00 2001 From: Phan An Date: Fri, 12 Jan 2024 00:29:00 +0100 Subject: [PATCH] feat(plus): suggests to show public songs if song list is empty --- .../js/components/screens/AllSongsScreen.vue | 13 ++++++++++++ .../assets/js/components/ui/CheckBox.vue | 20 ++++++++----------- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/resources/assets/js/components/screens/AllSongsScreen.vue b/resources/assets/js/components/screens/AllSongsScreen.vue index cb65c1a7..e1b7025a 100644 --- a/resources/assets/js/components/screens/AllSongsScreen.vue +++ b/resources/assets/js/components/screens/AllSongsScreen.vue @@ -42,6 +42,14 @@ Your library is empty. + + Show public songs from other users? + @@ -112,6 +120,11 @@ const sort = async (field: SongListSortField, order: SortOrder) => { await fetchSongs() } +const showSongsFromOthers = async () => { + ownSongsOnly.value = false + await fetchSongs() +} + const fetchSongs = async () => { if (!moreSongsAvailable.value || loading.value) return diff --git a/resources/assets/js/components/ui/CheckBox.vue b/resources/assets/js/components/ui/CheckBox.vue index 5330943c..53d155bb 100644 --- a/resources/assets/js/components/ui/CheckBox.vue +++ b/resources/assets/js/components/ui/CheckBox.vue @@ -1,24 +1,20 @@