Browse Source

Merge pull request #11842 from deepeshgarg007/navbar_settings_fixes

fix: Make route and action readonly for standard navbar items
version-14
mergify[bot] 4 years ago
committed by GitHub
parent
commit
cd9b806439
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      frappe/core/doctype/navbar_item/navbar_item.json

+ 4
- 2
frappe/core/doctype/navbar_item/navbar_item.json View File

@@ -2,7 +2,6 @@
"actions": [], "actions": [],
"creation": "2020-08-01 23:38:41.783206", "creation": "2020-08-01 23:38:41.783206",
"doctype": "DocType", "doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB", "engine": "InnoDB",
"field_order": [ "field_order": [
"item_label", "item_label",
@@ -30,6 +29,7 @@
"in_list_view": 1, "in_list_view": 1,
"label": "Item Type", "label": "Item Type",
"options": "Route\nAction\nSeparator", "options": "Route\nAction\nSeparator",
"read_only_depends_on": "eval:doc.is_standard",
"show_days": 1, "show_days": 1,
"show_seconds": 1 "show_seconds": 1
}, },
@@ -59,6 +59,7 @@
"in_list_view": 1, "in_list_view": 1,
"label": "Route", "label": "Route",
"mandatory_depends_on": "eval:doc.item_type == 'Route'", "mandatory_depends_on": "eval:doc.item_type == 'Route'",
"read_only_depends_on": "eval:doc.is_standard",
"show_days": 1, "show_days": 1,
"show_seconds": 1 "show_seconds": 1
}, },
@@ -68,13 +69,14 @@
"fieldtype": "Data", "fieldtype": "Data",
"label": "Action", "label": "Action",
"mandatory_depends_on": "eval:doc.item_type == 'Action'", "mandatory_depends_on": "eval:doc.item_type == 'Action'",
"read_only_depends_on": "eval:doc.is_standard",
"show_days": 1, "show_days": 1,
"show_seconds": 1 "show_seconds": 1
} }
], ],
"istable": 1, "istable": 1,
"links": [], "links": [],
"modified": "2020-08-06 16:32:49.597060",
"modified": "2020-11-02 10:57:37.709262",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Core", "module": "Core",
"name": "Navbar Item", "name": "Navbar Item",


Loading…
Cancel
Save