chore: add icon classes for each event type
This commit is contained in:
parent
44aaeccef0
commit
65dfd87f49
1 changed files with 3 additions and 1 deletions
|
|
@ -172,9 +172,11 @@ class FormTimeline extends BaseTimeline {
|
|||
|
||||
get_communication_timeline_contents() {
|
||||
let communication_timeline_contents = [];
|
||||
let icon_set = {Email: "mail", Phone: "call", Meeting: "calendar", Other: "dot-horizontal"};
|
||||
(this.doc_info.communications|| []).forEach(communication => {
|
||||
let medium = communication.communication_medium;
|
||||
communication_timeline_contents.push({
|
||||
icon: 'mail',
|
||||
icon: icon_set[medium],
|
||||
icon_size: 'sm',
|
||||
creation: communication.creation,
|
||||
is_card: true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue