From 6a1c4435b1145d9345dcd6f24fa24c48c8f9b17f Mon Sep 17 00:00:00 2001 From: cvium Date: Sat, 6 Mar 2021 00:53:09 +0100 Subject: [PATCH] don't use Locations as an indicator for AddLibrary --- src/controllers/dashboard/library.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/controllers/dashboard/library.js b/src/controllers/dashboard/library.js index a0acb36ad4..27711243e0 100644 --- a/src/controllers/dashboard/library.js +++ b/src/controllers/dashboard/library.js @@ -169,7 +169,8 @@ import cardBuilder from '../../components/cardbuilder/cardBuilder'; showType: false, showLocations: false, showMenu: false, - showNameWithIcon: false + showNameWithIcon: false, + elementId: 'addLibrary' }); for (let i = 0; i < virtualFolders.length; i++) { @@ -255,11 +256,8 @@ import cardBuilder from '../../components/cardbuilder/cardBuilder'; style += 'min-width:33.3%;'; } - if (virtualFolder.Locations.length == 0) { - html += '
'; - } else { - html += '
'; - } + let elementId = virtualFolder.elementId ? `id="${virtualFolder.elementId}"' ` : ''; + html += '
'; html += '
'; html += '
';