stream view list modal pagination

This commit is contained in:
Yuri Kuznetsov
2024-05-10 13:24:09 +03:00
parent f73e4f2b47
commit d4096b8dfb
4 changed files with 21 additions and 2 deletions
+10 -2
View File
@@ -37,6 +37,16 @@
class='list-action-item'
}}
{{/each}}
<div class="sticked-bar hidden">
{{#if hasPagination}}
{{{paginationSticky}}}
{{/if}}
</div>
{{#if hasPagination}}
{{{pagination}}}
{{/if}}
</div>
{{/if}}
@@ -49,7 +59,6 @@
{{/each}}
</ul>
{{#unless hasPagination}}
{{#if showMoreEnabled}}
{{#if showMoreActive}}
<div class="show-more{{#unless showMoreActive}} hidden{{/unless}}">
@@ -69,7 +78,6 @@
</div>
{{/if}}
{{/if}}
{{/unless}}
</div>
{{else}}
+1
View File
@@ -437,6 +437,7 @@ class RelatedListModalView extends ModalView {
editDisabled: this.defs.editDisabled,
removeDisabled: this.defs.removeDisabled,
},
forcePagination: this.options.forcePagination,
pagination: this.getConfig().get('listPagination') ||
this.getMetadata().get(['clientDefs', this.scope, 'listPagination']) ||
null,
+8
View File
@@ -45,6 +45,14 @@ class ListExpandedRecordView extends ListRecordView {
checkedList = null
listContainerEl = '.list > ul'
init() {
if (this.options.forcePagination) {
this.paginationDisabled = false;
}
super.init();
}
setup() {
super.setup();
+2
View File
@@ -769,6 +769,7 @@ class PanelStreamView extends RelationshipPanelView {
title: this.translate('Stream') +
' @right ' + this.translate('posts', 'filters', 'Note'),
forceSelectAllAttributes: true,
forcePagination: true,
},
};
@@ -785,6 +786,7 @@ class PanelStreamView extends RelationshipPanelView {
title: this.translate('Stream') + ' @right ' + this.translate('activity', 'filters', 'Note'),
forceSelectAllAttributes: true,
filtersLayoutName: 'filtersGlobal',
forcePagination: true,
},
};