feat: show only create button for null state in mobile
This commit is contained in:
parent
0fd7eef557
commit
4cecb40fc4
1 changed files with 2 additions and 2 deletions
|
|
@ -427,9 +427,9 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
"/assets/frappe/images/ui-states/list-empty-state.svg";
|
||||
|
||||
const new_button = this.can_create
|
||||
? `<p><button class="btn btn-primary btn-sm btn-new-doc">
|
||||
? `<p><button class="btn btn-primary btn-sm btn-new-doc hidden-xs">
|
||||
${new_button_label}
|
||||
</button></p>`
|
||||
</button> <button class="btn btn-primary btn-new-doc visible-xs">${__('Create New')}</button></p>`
|
||||
: "";
|
||||
|
||||
return `<div class="msg-box no-border">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue