mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-27 22:46:04 +00:00
Menu action icons
This commit is contained in:
@@ -48,14 +48,16 @@
|
||||
"name": "archiveEmail",
|
||||
"label":"Archive Email",
|
||||
"link":"#Email/create",
|
||||
"acl":"create"
|
||||
"acl":"create",
|
||||
"iconClass": "fas fa-plus"
|
||||
},
|
||||
{
|
||||
"name": "importEml",
|
||||
"label": "Import EML",
|
||||
"handler": "handlers/email/list-actions",
|
||||
"checkVisibilityFunction": "checkImportEml",
|
||||
"actionFunction": "importEml"
|
||||
"actionFunction": "importEml",
|
||||
"iconClass": "fas fa-upload"
|
||||
},
|
||||
false,
|
||||
{
|
||||
@@ -72,7 +74,8 @@
|
||||
{
|
||||
"inPortalDisabled": true
|
||||
}
|
||||
]
|
||||
],
|
||||
"iconClass": "far fa-folder"
|
||||
},
|
||||
{
|
||||
"label": "Group Folders",
|
||||
@@ -85,7 +88,8 @@
|
||||
{
|
||||
"isAdminOnly": true
|
||||
}
|
||||
]
|
||||
],
|
||||
"iconClass": "far fa-circle"
|
||||
},
|
||||
{
|
||||
"label":"Filters",
|
||||
@@ -103,17 +107,20 @@
|
||||
{
|
||||
"label":"Reply",
|
||||
"action":"reply",
|
||||
"acl":"read"
|
||||
"acl":"read",
|
||||
"iconClass": "fas fa-reply"
|
||||
},
|
||||
{
|
||||
"label":"Reply to All",
|
||||
"action":"replyToAll",
|
||||
"acl":"read"
|
||||
"acl":"read",
|
||||
"iconClass": "fas fa-reply-all"
|
||||
},
|
||||
{
|
||||
"label":"Forward",
|
||||
"action":"forward",
|
||||
"acl":"read"
|
||||
"acl":"read",
|
||||
"iconClass": "fas fa-reply fa-flip-horizontal"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -65,6 +65,7 @@ class EmailDetailView extends DetailView {
|
||||
action: 'createLead',
|
||||
acl: 'create',
|
||||
aclScope: 'Lead',
|
||||
iconClass: 'fas fa-plus',
|
||||
});
|
||||
|
||||
this.addMenuItem('dropdown', {
|
||||
@@ -72,6 +73,7 @@ class EmailDetailView extends DetailView {
|
||||
action: 'createContact',
|
||||
acl: 'create',
|
||||
aclScope: 'Contact',
|
||||
iconClass: 'fas fa-plus',
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -80,7 +82,8 @@ class EmailDetailView extends DetailView {
|
||||
label: 'Create Task',
|
||||
action: 'createTask',
|
||||
acl: 'create',
|
||||
aclScope: 'Task'
|
||||
aclScope: 'Task',
|
||||
iconClass: 'fas fa-plus',
|
||||
});
|
||||
|
||||
if (this.model.get('parentType') !== 'Case' || !this.model.get('parentId')) {
|
||||
@@ -88,7 +91,8 @@ class EmailDetailView extends DetailView {
|
||||
label: 'Create Case',
|
||||
action: 'createCase',
|
||||
acl: 'create',
|
||||
aclScope: 'Case'
|
||||
aclScope: 'Case',
|
||||
iconClass: 'fas fa-plus',
|
||||
});
|
||||
}
|
||||
|
||||
@@ -103,6 +107,7 @@ class EmailDetailView extends DetailView {
|
||||
acl: 'create',
|
||||
aclScope: 'Document',
|
||||
hidden: this.model.get('attachmentsIds') === undefined,
|
||||
iconClass: 'fas fa-plus',
|
||||
});
|
||||
|
||||
if (this.model.get('attachmentsIds') === undefined) {
|
||||
|
||||
@@ -137,6 +137,7 @@ export default class HeaderButtonsView extends View<{
|
||||
className: 'main-header-manu-action',
|
||||
hidden: it.hidden,
|
||||
disabled: it.disabled,
|
||||
iconClass: it.iconClass,
|
||||
}).node()
|
||||
);
|
||||
});
|
||||
@@ -187,6 +188,7 @@ export default class HeaderButtonsView extends View<{
|
||||
className: 'main-header-manu-action',
|
||||
hidden: it.hidden,
|
||||
disabled: it.disabled,
|
||||
iconClass: it.iconClass,
|
||||
}).node()
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user