Skip to content

Commit

Permalink
Merge pull request #74 from webitel/fix/change-close-tab-method
Browse files Browse the repository at this point in the history
fix: change close tab method when moved from another app[WTEL-4552]
  • Loading branch information
Lera24 authored May 31, 2024
2 parents a03931d + 470790c commit e68387e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/contacts/components/opened-contact.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ async function initializeCard() {
}
function close() {
// Need to close the tab if you moved from another application
// https://webitel.atlassian.net/browse/WTEL-4552
if(window.history.length === 1) window.close();
return router.push('/contacts');
}
Expand Down

0 comments on commit e68387e

Please sign in to comment.