Merge pull request #6020 from sboursen-scinote/sb_SCI-9019

Table header not visible after creating a project/folder [SCI-9019]
This commit is contained in:
ajugo 2023-08-18 16:34:15 +02:00 committed by GitHub
commit 6de239547e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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');
}