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