Fix pads and files not displayed in the drive when logging in

pull/1/head
yflory 6 years ago
parent b1f0ca3664
commit f5c8d8566d

@ -512,13 +512,14 @@ define([
// Tags used: display Tags category // Tags used: display Tags category
if (Object.keys(manager.getTagsList()).length) { displayedCategories.push(TAGS); } if (Object.keys(manager.getTagsList()).length) { displayedCategories.push(TAGS); }
var virtualCategories = [SEARCH, RECENT, OWNED, TAGS, SHARED_FOLDER]; var virtualCategories = [SEARCH, RECENT, OWNED, TAGS];
if (!APP.loggedIn) { if (!APP.loggedIn) {
$tree.hide(); $tree.hide();
if (APP.newSharedFolder) { if (APP.newSharedFolder) {
// ANON_SHARED_FOLDER // ANON_SHARED_FOLDER
displayedCategories = [SHARED_FOLDER]; displayedCategories = [SHARED_FOLDER];
virtualCategories.push(SHARED_FOLDER);
currentPath = [SHARED_FOLDER, ROOT]; currentPath = [SHARED_FOLDER, ROOT];
} else { } else {
displayedCategories = [FILES_DATA]; displayedCategories = [FILES_DATA];

Loading…
Cancel
Save