Show table header in folder when creating the first project [SCI-9019]

This commit is contained in:
sboursen-scinote 2023-08-18 16:26:53 +02:00
parent 67042ce254
commit 2dc82c9ed9

View file

@ -416,12 +416,12 @@ var ProjectsIndex = (function() {
viewContainer.removeClass('no-results no-data');
viewContainer.find('.card, .projects-group, .no-results-container, .no-data-container').remove();
if (viewContainer.find('.list').length) {
viewContainer.append(data.cards_html);
if (viewContainer.hasClass('list')) {
viewContainer.find('.table-header').show();
}
viewContainer.append(data.cards_html);
if (viewContainer.find('.no-results-container').length) {
viewContainer.addClass('no-results');
}