fix: show icon if it is exists
This commit is contained in:
parent
39559e8575
commit
fe79ab3ee7
2 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ class WorkspaceSidebar(Document):
|
|||
if not self.user.can_read:
|
||||
self.user.build_permissions()
|
||||
|
||||
def on_update(self):
|
||||
def before_save(self):
|
||||
if frappe.conf.developer_mode:
|
||||
if self.app:
|
||||
self.export_sidebar()
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ frappe.ui.sidebar_item.TypeLink = class SidebarItem {
|
|||
prepare() {}
|
||||
make() {
|
||||
this.path = this.get_path();
|
||||
if (!(this.item.child && this.item.parent.indent)) {
|
||||
if (!this.item.icon && !(this.item.child && this.item.parent.indent)) {
|
||||
this.item.icon = "list-alt";
|
||||
}
|
||||
this.wrapper = $(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue