Skip to content

Commit

Permalink
Merge pull request #57 from webitel/fix/communications-link
Browse files Browse the repository at this point in the history
fix: adding communicationsLink to contacts [WTEL-4311]
  • Loading branch information
dlohvinov authored Mar 18, 2024
2 parents c2023f2 + 5d4570a commit b31995e
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 b31995e

Please sign in to comment.