From a7236eeb11bc7ad2b0ff053e37f6287c5ec69f07 Mon Sep 17 00:00:00 2001 From: p0ps Date: Mon, 17 Aug 2020 18:40:52 +0200 Subject: [PATCH] Hide Lists title, when there is only one list (for ex. Series). (#8348) * Hide Lists title, when there is only one list (for ex. Series). * Should also work if you have all your shows in one other list. * Fix loading spinner and only show one "Please add a show here to get started" * Fix lint * Remove unused import. * Remove comments --- themes-default/slim/src/components/home.vue | 59 +++++-------------- .../slim/src/components/schedule.vue | 10 ++++ .../slim/src/components/show-list/index.vue | 13 ++-- .../slim/src/store/modules/shows.js | 50 ++++++++++++++++ themes/dark/assets/js/medusa-runtime.js | 48 ++++++++++++--- themes/light/assets/js/medusa-runtime.js | 48 ++++++++++++--- 6 files changed, 163 insertions(+), 65 deletions(-) diff --git a/themes-default/slim/src/components/home.vue b/themes-default/slim/src/components/home.vue index 6d198946fb..88a75bb853 100644 --- a/themes-default/slim/src/components/home.vue +++ b/themes-default/slim/src/components/home.vue @@ -33,14 +33,14 @@
@@ -50,16 +50,20 @@ + + + Please add a show here to get started +
@@ -68,6 +72,7 @@ diff --git a/themes-default/slim/src/components/show-list/index.vue b/themes-default/slim/src/components/show-list/index.vue index d4ede03f6f..c17e7c05bd 100644 --- a/themes-default/slim/src/components/show-list/index.vue +++ b/themes-default/slim/src/components/show-list/index.vue @@ -1,7 +1,7 @@