From c2c1f0dc3fe6caa7546a2c5526abef55e5e984e2 Mon Sep 17 00:00:00 2001 From: nklhrstv Date: Sat, 28 Mar 2020 22:25:17 +0200 Subject: [PATCH] UX for error messages in CW/Library improved --- src/routes/Library/Library.js | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/routes/Library/Library.js b/src/routes/Library/Library.js index 910892b2b..b8d12f75d 100644 --- a/src/routes/Library/Library.js +++ b/src/routes/Library/Library.js @@ -18,7 +18,7 @@ const Library = ({ model, route, urlParams, queryParams }) => {
{ - available ? + available && library.type_names.length > 0 ?
@@ -42,17 +42,32 @@ const Library = ({ model, route, urlParams, queryParams }) => { : library.type_names.length === 0 ?
-
Empty library
+ {' +
Empty {route === 'continuewatching' ? 'Continue Watching' : 'Library'}
: library.selected === null ?
-
Please select a type
+ {' +
{route === 'continuewatching' ? 'Continue Watching' : 'Library'} not loaded!
: library.lib_items.length === 0 ?
-
There are no items for the selected type
+ {' +
There are no items for the selected type!
: