fix: Change the route from inbox to inbox-view (#8874)

* fix: Change inbox to inbox-view

* fix: route fixes

* Update ContactInfo.vue

* Update conversation.routes.js
This commit is contained in:
Muhsin Keloth
2024-02-07 14:34:18 +05:30
committed by GitHub
parent a9ec3ae098
commit 3abb887445
4 changed files with 7 additions and 7 deletions

View File

@@ -306,7 +306,7 @@ export default {
});
} else if (isAInboxViewRoute(this.$route.name)) {
this.$router.push({
name: 'inbox',
name: 'inbox-view',
});
} else if (this.$route.name !== 'contacts_dashboard') {
this.$router.push({

View File

@@ -6,8 +6,8 @@ const InboxView = () => import('../inbox/InboxView.vue');
export default {
routes: [
{
path: frontendURL('accounts/:accountId/inbox'),
name: 'inbox',
path: frontendURL('accounts/:accountId/inbox-view'),
name: 'inbox_view',
roles: ['administrator', 'agent'],
component: InboxView,
props: () => {
@@ -15,7 +15,7 @@ export default {
},
},
{
path: frontendURL('accounts/:accountId/inbox/:conversation_id'),
path: frontendURL('accounts/:accountId/inbox-view/:conversation_id'),
name: 'inbox_view_conversation',
roles: ['administrator', 'agent'],
component: InboxView,

View File

@@ -97,8 +97,8 @@ export default {
methods: {
redirectToInbox() {
if (!this.conversationId) return;
if (this.$route.name === 'inbox') return;
this.$router.push({ name: 'inbox' });
if (this.$route.name === 'inbox-view') return;
this.$router.push({ name: 'inbox-view' });
},
loadMoreNotifications() {
if (this.uiFlags.isAllNotificationsLoaded) return;

View File

@@ -132,7 +132,7 @@ export default {
.then(() => {
this.showAlert(this.$t('INBOX.ALERTS.DELETE'));
});
this.$router.push({ name: 'inbox' });
this.$router.push({ name: 'inbox-view' });
},
onClickNext() {
this.$emit('next');