list button contanier placeholder

This commit is contained in:
Yuri Kuznetsov
2023-05-08 18:20:34 +03:00
parent f4db21af2c
commit 458fb47f43
3 changed files with 14 additions and 8 deletions

View File

@@ -108,14 +108,16 @@
{{/if}}
{{#if displayTotalCount}}
<div class="text-muted total-count">
<span
title="{{translate 'Total'}}"
class="total-count-span"
>{{totalCountFormatted}}</span>
</div>
<div class="text-muted total-count">
<span
title="{{translate 'Total'}}"
class="total-count-span"
>{{totalCountFormatted}}</span>
</div>
{{/if}}
</div>
{{else}}
<div class="list-buttons-container"></div>
{{/if}}
<div class="list{{#if tableMinWidth}} scrollable{{/if}}" data-scope="{{scope}}">

View File

@@ -936,12 +936,15 @@ function (Dep, MassActionHelper, ExportHelper, RecordModal) {
}
}
let displayTotalCount = this.displayTotalCount && this.collection.total > 0;
let topBar =
paginationTop ||
this.checkboxes ||
(this.buttonList.length && !this.buttonsDisabled) ||
(this.dropdownItemList.length && !this.buttonsDisabled) ||
this.forceDisplayTopBar;
this.forceDisplayTopBar ||
displayTotalCount;
return {
scope: this.scope,
@@ -963,7 +966,7 @@ function (Dep, MassActionHelper, ExportHelper, RecordModal) {
checkAllResultDisabled: checkAllResultDisabled,
buttonList: this.buttonList,
dropdownItemList: this.dropdownItemList,
displayTotalCount: this.displayTotalCount && this.collection.total > 0,
displayTotalCount: displayTotalCount,
displayActionsButtonGroup: this.checkboxes ||
this.massActionList || this.buttonList.length || this.dropdownItemList.length,
totalCountFormatted: this.getNumberUtil().formatInt(this.collection.total),

View File

@@ -867,6 +867,7 @@ input.global-search-input {
.list-container .list-buttons-container {
margin-bottom: @padding-base-horizontal;
min-height: 35px;
}
.list-buttons-container .sticked-bar {