This commit is contained in:
Yuri Kuznetsov
2025-02-22 11:25:55 +02:00
parent 3ef7382ab0
commit 2fac2328d0
2 changed files with 6 additions and 5 deletions

View File

@@ -310,21 +310,22 @@ class SelectRecordsModalView extends ModalView {
this.getMetadata().get(`clientDefs.${this.scope}.recordViews.list`) ||
'views/record/list';
const promise = this.createView('list', viewName, {
/** @type {module:views/record/list~options} */
const options = {
collection: this.collection,
fullSelector: this.containerSelector + ' .list-container',
selectable: true,
checkboxes: this.multiple,
massActionsDisabled: true,
rowActionsView: false,
rowActionsView: null,
layoutName: this.layoutName,
searchManager: this.searchManager,
checkAllResultDisabled: !this.massRelateEnabled,
buttonsDisabled: true,
skipBuildRows: true,
pagination: this.getMetadata().get(['clientDefs', this.scope, 'listPagination']) || null,
}, view => {
}
const promise = this.createView('list', viewName, options, view => {
this.listenToOnce(view, 'select', models => {
this.trigger('select', models);

View File

@@ -74,7 +74,7 @@ class ListRecordView extends View {
* @property {boolean} [pagination] To enable the pagination.
* @property {boolean} [headerDisabled] Disable the header.
* @property {boolean} [noDataDisabled] Disable the no-data label (when no results).
* @property {string} [rowActionsView] A row actions view.
* @property {string|null} [rowActionsView] A row actions view.
* @property {boolean} [rowActionsDisabled] Disable row actions.
* @property {boolean} [showMore] The show-more button.
* @property {boolean} [keepCurrentRootUrl] Keep a current root URL.