stream view list modal pagination
This commit is contained in:
@@ -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}}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user