From 2fac2328d03d4e1e53dbbc57ab4e51b6bd5fc626 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sat, 22 Feb 2025 11:25:55 +0200 Subject: [PATCH] ref --- client/src/views/modals/select-records.js | 9 +++++---- client/src/views/record/list.js | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/client/src/views/modals/select-records.js b/client/src/views/modals/select-records.js index 90b7f35dfb..eb250b21fd 100644 --- a/client/src/views/modals/select-records.js +++ b/client/src/views/modals/select-records.js @@ -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); diff --git a/client/src/views/record/list.js b/client/src/views/record/list.js index 6ee691e5a8..70b2336324 100644 --- a/client/src/views/record/list.js +++ b/client/src/views/record/list.js @@ -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.