use forceDisplayTopBar

This commit is contained in:
Yuri Kuznetsov
2023-05-09 14:35:07 +03:00
parent 8213f704ce
commit 901c0ba24e
5 changed files with 9 additions and 2 deletions
-2
View File
@@ -116,8 +116,6 @@
</div>
{{/if}}
</div>
{{else}}
<div class="list-buttons-container"></div>
{{/if}}
<div class="list{{#if tableMinWidth}} scrollable{{/if}}" data-scope="{{scope}}">
+1
View File
@@ -576,6 +576,7 @@ function (Dep, /** typeof module:search-manager.Class */SearchManager) {
unlinkMassAction: !massUnlinkDisabled,
skipBuildRows: true,
buttonsDisabled: true,
forceDisplayTopBar: true,
rowActionsOptions: {
unlinkDisabled: this.panelDefs.unlinkDisabled || this.unlinkDisabled,
},
+1
View File
@@ -574,6 +574,7 @@ function (Dep, /** typeof module:search-manager.Class */SearchManager) {
scope: this.scope,
skipBuildRows: true,
shortcutKeysEnabled: true,
forceDisplayTopBar: true,
};
this.optionsToPass.forEach(option => {
+6
View File
@@ -253,6 +253,12 @@ function (Dep, MassActionHelper, ExportHelper, RecordModal) {
*/
checkboxesDisabled: false,
/**
* Force displaying the top bar even if empty. Can be overridden by an option parameter.
* @protected
*/
forceDisplayTopBar: false,
/**
* Where to display the pagination. Can be overridden by an option parameter.
*
@@ -277,6 +277,7 @@ function (Dep, SearchManager, RecordModal) {
rowActionsOptions: {
unlinkDisabled: this.defs.unlinkDisabled,
},
displayTotalCount: false,
}, view => {
view.getSelectAttributeList((selectAttributeList) => {
if (selectAttributeList) {