sticky bar fix

This commit is contained in:
Yuri Kuznetsov
2024-08-26 23:39:15 +03:00
parent 4bfedf8db3
commit fdb1595cd5
3 changed files with 7 additions and 5 deletions
@@ -1,11 +1,11 @@
{{#if collection.models.length}}
{{#hasStickyBar}}
{{#if hasStickyBar}}
<div class="list-sticky-bar sticked-bar hidden">
{{#if hasPagination}}
{{{paginationSticky}}}
{{/if}}
</div>
{{/hasStickyBar}}
{{/if}}
{{#if topBar}}
<div class="list-buttons-container clearfix">
+1 -1
View File
@@ -122,7 +122,7 @@ class NotificationPanelView extends View {
view: 'views/notification/fields/read',
width: '10px',
},
}
},
});
}
+4 -2
View File
@@ -991,10 +991,12 @@ class ListRecordView extends View {
topBar = false;
}
const displayActionsButtonGroup = this.checkboxes || this.massActionList || this.buttonList.length ||
const checkboxes = this.checkboxes && this.massActionList.length;
const displayActionsButtonGroup = checkboxes || this.buttonList.length ||
this.dropdownItemList.length;
const hasStickyBar = this.forceStickyBar || displayActionsButtonGroup;
const hasStickyBar = this.forceStickyBar || displayActionsButtonGroup || this.pagination;
const noDataDisabled = this.noDataDisabled || this._renderEmpty;