Skip to content

Commit

Permalink
fix: created workspace custom block doctype to store custom blocks
Browse files Browse the repository at this point in the history
(cherry picked from commit 45c05be)
  • Loading branch information
shariquerik authored and mergify[bot] committed May 18, 2023
1 parent d46a7c9 commit d08401d
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 1 deletion.
15 changes: 14 additions & 1 deletion frappe/desk/doctype/workspace/workspace.json
Expand Up @@ -31,6 +31,8 @@
"links",
"quick_lists_tab",
"quick_lists",
"custom_blocks_tab",
"custom_blocks",
"roles_tab",
"roles"
],
Expand Down Expand Up @@ -194,11 +196,22 @@
"fieldtype": "Table",
"label": "Number Cards",
"options": "Workspace Number Card"
},
{
"fieldname": "custom_blocks_tab",
"fieldtype": "Tab Break",
"label": "Custom Blocks"
},
{
"fieldname": "custom_blocks",
"fieldtype": "Table",
"label": "Custom Blocks",
"options": "Workspace Custom Block"
}
],
"in_create": 1,
"links": [],
"modified": "2023-04-11 14:34:24.829366",
"modified": "2023-05-17 14:52:38.110224",
"modified_by": "Administrator",
"module": "Desk",
"name": "Workspace",
Expand Down
Empty file.
@@ -0,0 +1,39 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2023-05-17 14:49:19.454932",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"custom_block_name",
"label"
],
"fields": [
{
"fieldname": "custom_block_name",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Custom Block Name",
"options": "Custom HTML Block"
},
{
"fieldname": "label",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Label"
}
],
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2023-05-17 14:50:45.575609",
"modified_by": "Administrator",
"module": "Desk",
"name": "Workspace Custom Block",
"owner": "Administrator",
"permissions": [],
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}
@@ -0,0 +1,9 @@
# Copyright (c) 2023, Frappe Technologies and contributors
# For license information, please see license.txt

# import frappe
from frappe.model.document import Document


class WorkspaceCustomBlock(Document):
pass

0 comments on commit d08401d

Please sign in to comment.