fixed #1812 icon-lock are shown for newly created private albums

This commit is contained in:
Matthieu Leproux
2022-11-28 16:27:33 +01:00
parent ee2a14843e
commit be63364aa6
+1 -1
View File
@@ -303,7 +303,7 @@ $(document).ready(() => {
function createAlbumNode(node, li) {
icon = "<span class='%icon%'></span>";
title = '<span data-id="'+node.id+'" class="move-cat-title-container ';
if (node.status == 'private') {
if (node.status == 'private' || node.parent.status == 'private') {
title += 'icon-lock';
}
title += '"><p class="move-cat-title" title="'+node.name+'">%name%</p> <span class="icon-pencil"></span> </span>';