Skip to content

Commit

Permalink
fix: adding communicationsLink to contacts [WTEL-4311]
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr Dekhtyaruk committed Mar 15, 2024
1 parent c2023f2 commit 5d4570a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/modules/contacts/components/the-contacts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@
:username="item.name.commonName"
/>
<wt-item-link
:id="item.id"
:route-name="CrmSections.CONTACTS"
:link="communicationsLink(item)"
>
{{ item.name.commonName }}
</wt-item-link>
Expand Down Expand Up @@ -215,6 +214,11 @@ function edit({ id }) {
isContactPopup.value = true;
}
function communicationsLink({ id }) {
const routeName = CrmSections.CONTACTS;
return { name: `${routeName}-communications`, params: { id } };
}
function saved(id) {
router.push(`/${CrmSections.CONTACTS}/${id}`);
}
Expand Down

0 comments on commit 5d4570a

Please sign in to comment.