use forceDisplayTopBar
This commit is contained in:
@@ -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}}">
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user