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)) { } else if (isAInboxViewRoute(this.$route.name)) {
this.$router.push({ this.$router.push({
name: 'inbox', name: 'inbox-view',
}); });
} else if (this.$route.name !== 'contacts_dashboard') { } else if (this.$route.name !== 'contacts_dashboard') {
this.$router.push({ this.$router.push({

View File

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

View File

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

View File

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