Merge pull request #36928 from iamejaaz/fix-list-view-title

fix(mobile): missing pagination
This commit is contained in:
Ejaaz Khan 2026-02-10 18:11:51 +05:30 committed by GitHub
commit a0b5dbdb5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -182,12 +182,18 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
const match_rules_list = frappe.perm.get_match_rules(this.doctype);
if (match_rules_list.length) {
this.restricted_list = $(
`<button class="btn btn-xs restricted-button flex align-center">
`<button class="btn btn-xs restricted-button flex align-center ${
frappe.is_mobile() ? "ml-2" : ""
}">
${frappe.utils.icon("restriction", "xs")}
</button>`
)
.click(() => this.show_restrictions(match_rules_list))
.appendTo(this.page.page_form);
.appendTo(
frappe.is_mobile()
? this.page.page_form.find(".filter-section")
: this.page.page_form
);
}
}