Merge pull request #36928 from iamejaaz/fix-list-view-title
fix(mobile): missing pagination
This commit is contained in:
commit
a0b5dbdb5a
1 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue