fix(workspace-sidebar-item): display icon field for section break and show link fields only for link type

This commit is contained in:
diptanilsaha 2026-01-12 15:42:13 +05:30
parent 8c5b5ecec3
commit a43d68c266

View file

@ -46,7 +46,7 @@
},
{
"default": "DocType",
"depends_on": "eval: doc.type == 'Link' || doc.indent == 1",
"depends_on": "eval: doc.type == 'Link'",
"fieldname": "link_type",
"fieldtype": "Select",
"in_list_view": 1,
@ -54,7 +54,7 @@
"options": "DocType\nPage\nReport\nWorkspace\nDashboard\nURL"
},
{
"depends_on": "eval: doc.link_type != \"URL\" && doc.type == 'Link' || doc.indent == 1",
"depends_on": "eval: doc.link_type != \"URL\" && doc.type == 'Link'",
"fieldname": "link_to",
"fieldtype": "Dynamic Link",
"in_list_view": 1,
@ -62,7 +62,7 @@
"options": "link_type"
},
{
"depends_on": "eval: doc.type == \"Link\"",
"depends_on": "eval: doc.type == \"Link\" || doc.type == \"Section Break\"",
"fieldname": "icon",
"fieldtype": "Icon",
"in_list_view": 1,
@ -174,7 +174,7 @@
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2026-01-05 17:51:09.868113",
"modified": "2026-01-12 15:35:56.930873",
"modified_by": "Administrator",
"module": "Desk",
"name": "Workspace Sidebar Item",