浏览代码

Merge pull request #13822 from resilient-tech/fix-inbox

fix: multiple issues with Email Inbox
version-14
mergify[bot] 3 年前
committed by GitHub
父节点
当前提交
257b41dcee
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 2 个文件被更改,包括 12 次插入6 次删除
  1. +6
    -1
      frappe/public/js/frappe/ui/toolbar/awesome_bar.js
  2. +6
    -5
      frappe/public/js/frappe/views/inbox/inbox_view.js

+ 6
- 1
frappe/public/js/frappe/ui/toolbar/awesome_bar.js 查看文件

@@ -194,9 +194,14 @@ frappe.search.AwesomeBar = class AwesomeBar {
var out = [], routes = [];
options.forEach(function(option) {
if(option.route) {
if(option.route[0] === "List" && option.route[2] !== 'Report') {
if (
option.route[0] === "List" &&
option.route[2] !== 'Report' &&
option.route[2] !== 'Inbox'
) {
option.route.splice(2);
}

var str_route = (typeof option.route==='string') ?
option.route : option.route.join('/');
if(routes.indexOf(str_route)===-1) {


+ 6
- 5
frappe/public/js/frappe/views/inbox/inbox_view.js 查看文件

@@ -94,19 +94,20 @@ frappe.views.InboxView = class InboxView extends frappe.views.ListView {
this.render_list();
this.on_row_checked();
this.render_count();
this.render_tags();
}

get_meta_html(email) {
const attachment = email.has_attachment ?
`<span class="fa fa-paperclip fa-large" title="${__('Has Attachments')}"></span>` : '';

const form_link = frappe.utils.get_form_link(email.reference_doctype, email.reference_name);
const link = email.reference_doctype && email.reference_doctype !== this.doctype ?
`<a class="text-muted grey" href="${form_link}"
let link = "";
if (email.reference_doctype && email.reference_doctype !== this.doctype) {
link = `<a class="text-muted grey"
href="${frappe.utils.get_form_link(email.reference_doctype, email.reference_name)}"
title="${__('Linked with {0}', [email.reference_doctype])}">
<i class="fa fa-link fa-large"></i>
</a>` : '';
</a>`;
}

const communication_date = comment_when(email.communication_date, true);
const status =


正在加载...
取消
保存