mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-30 18:47:51 +00:00 
			
		
		
		
	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:
		| @@ -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({ | ||||
|   | ||||
| @@ -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, | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
| @@ -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'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Muhsin Keloth
					Muhsin Keloth