fix: don't show apply filter button if no filter button

(cherry picked from commit ab65f7a7f0)
This commit is contained in:
prssanna 2021-03-26 12:25:17 +05:30 committed by mergify-bot
parent fcdb9c9915
commit ad0beb3810

View file

@ -299,9 +299,12 @@ frappe.ui.FilterGroup = class {
<button class="btn btn-secondary btn-xs clear-filters">
${__('Clear Filters')}
</button>
<button class="btn btn-primary btn-xs apply-filters">
${__('Apply Filters')}
</button>
${this.filter_button ?
`<button class="btn btn-primary btn-xs apply-filters">
${__('Apply Filters')}
</button>`
: ''
}
</div>
</div>
</div>`