浏览代码

fix: Make group mention clickable

version-14
Suraj Shetty 4 年前
父节点
当前提交
7d335a9bef
共有 3 个文件被更改,包括 10 次插入2 次删除
  1. +5
    -1
      frappe/core/doctype/user_group/user_group.json
  2. +2
    -1
      frappe/public/js/frappe/utils/utils.js
  3. +3
    -0
      frappe/public/scss/common/quill.scss

+ 5
- 1
frappe/core/doctype/user_group/user_group.json 查看文件

@@ -19,7 +19,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2021-04-15 14:24:23.168485",
"modified": "2021-04-15 16:12:31.455401",
"modified_by": "Administrator",
"module": "Core",
"name": "User Group",
@@ -36,6 +36,10 @@
"role": "System Manager",
"share": 1,
"write": 1
},
{
"read": 1,
"role": "All"
}
],
"sort_field": "modified",


+ 2
- 1
frappe/public/js/frappe/utils/utils.js 查看文件

@@ -1290,7 +1290,8 @@ Object.assign(frappe.utils, {
names_for_mentions.push({
id: group,
value: group,
is_group: true
is_group: true,
link: frappe.utils.get_form_link('User Group', group)
});
});



+ 3
- 0
frappe/public/scss/common/quill.scss 查看文件

@@ -120,6 +120,9 @@
padding: 2px 5px;
font-size: var(--text-sm);
background-color: var(--user-mention-bg-color);
a[href] {
text-decoration: none;
}
}

// table


正在加载...
取消
保存