diff --git a/app/javascript/dashboard/components/widgets/conversation/ConversationHeader.vue b/app/javascript/dashboard/components/widgets/conversation/ConversationHeader.vue
index 42172eb23..fa22e6e5a 100644
--- a/app/javascript/dashboard/components/widgets/conversation/ConversationHeader.vue
+++ b/app/javascript/dashboard/components/widgets/conversation/ConversationHeader.vue
@@ -129,7 +129,7 @@ export default {
name,
} = this.$route;
if (this.isInboxView) {
- return frontendURL(`accounts/${accountId}/inbox`);
+ return frontendURL(`accounts/${accountId}/inbox-view`);
}
return conversationListPageURL({
accountId,
diff --git a/app/javascript/dashboard/i18n/locale/en/inbox.json b/app/javascript/dashboard/i18n/locale/en/inbox.json
index dcac5459f..9627b134f 100644
--- a/app/javascript/dashboard/i18n/locale/en/inbox.json
+++ b/app/javascript/dashboard/i18n/locale/en/inbox.json
@@ -4,7 +4,6 @@
"TITLE": "Inbox",
"DISPLAY_DROPDOWN": "Display",
"LOADING": "Fetching notifications",
- "EOF": "All notifications loaded 🎉",
"404": "There are no active notifications in this group.",
"NO_NOTIFICATIONS": "No notifications",
"NOTE": "Notifications from all subscribed inboxes",
diff --git a/app/javascript/dashboard/routes/dashboard/Dashboard.vue b/app/javascript/dashboard/routes/dashboard/Dashboard.vue
index 2602c9764..18b341ce8 100644
--- a/app/javascript/dashboard/routes/dashboard/Dashboard.vue
+++ b/app/javascript/dashboard/routes/dashboard/Dashboard.vue
@@ -50,6 +50,7 @@ import AddLabelModal from 'dashboard/routes/dashboard/settings/labels/AddLabel.v
import NotificationPanel from 'dashboard/routes/dashboard/notifications/components/NotificationPanel.vue';
import uiSettingsMixin from 'dashboard/mixins/uiSettings';
import wootConstants from 'dashboard/constants/globals';
+import resizeListenerMixin from 'shared/mixins/resizeListenerMixin';
export default {
components: {
@@ -61,7 +62,7 @@ export default {
AddLabelModal,
NotificationPanel,
},
- mixins: [uiSettingsMixin],
+ mixins: [uiSettingsMixin, resizeListenerMixin],
data() {
return {
showAccountModal: false,
@@ -109,33 +110,20 @@ export default {
},
mounted() {
this.handleResize();
- window.addEventListener('resize', this.handleResize);
bus.$on(BUS_EVENTS.TOGGLE_SIDEMENU, this.toggleSidebar);
},
beforeDestroy() {
- window.removeEventListener('resize', this.handleResize);
bus.$off(BUS_EVENTS.TOGGLE_SIDEMENU, this.toggleSidebar);
},
methods: {
handleResize() {
const { SMALL_SCREEN_BREAKPOINT, LAYOUT_TYPES } = wootConstants;
- let throttled = false;
- const delay = 150;
-
- if (throttled) {
- return;
+ if (window.innerWidth <= SMALL_SCREEN_BREAKPOINT) {
+ this.displayLayoutType = LAYOUT_TYPES.EXPANDED;
+ } else {
+ this.displayLayoutType = LAYOUT_TYPES.CONDENSED;
}
- throttled = true;
-
- setTimeout(() => {
- throttled = false;
- if (window.innerWidth <= SMALL_SCREEN_BREAKPOINT) {
- this.displayLayoutType = LAYOUT_TYPES.EXPANDED;
- } else {
- this.displayLayoutType = LAYOUT_TYPES.CONDENSED;
- }
- }, delay);
},
toggleSidebar() {
this.updateUISettings({
diff --git a/app/javascript/dashboard/routes/dashboard/conversation/conversation.routes.js b/app/javascript/dashboard/routes/dashboard/conversation/conversation.routes.js
index 63a32d72b..2411acdbf 100644
--- a/app/javascript/dashboard/routes/dashboard/conversation/conversation.routes.js
+++ b/app/javascript/dashboard/routes/dashboard/conversation/conversation.routes.js
@@ -15,12 +15,12 @@ export default {
},
},
{
- path: frontendURL('accounts/:accountId/inbox-view/:conversation_id'),
+ path: frontendURL('accounts/:accountId/inbox-view/:notification_id'),
name: 'inbox_view_conversation',
roles: ['administrator', 'agent'],
component: InboxView,
props: route => {
- return { inboxId: 0, conversationId: route.params.conversation_id };
+ return { inboxId: 0, notificationId: route.params.notification_id };
},
},
{
diff --git a/app/javascript/dashboard/routes/dashboard/inbox/InboxList.vue b/app/javascript/dashboard/routes/dashboard/inbox/InboxList.vue
index bb0f2e7df..c4d5d87e9 100644
--- a/app/javascript/dashboard/routes/dashboard/inbox/InboxList.vue
+++ b/app/javascript/dashboard/routes/dashboard/inbox/InboxList.vue
@@ -3,7 +3,11 @@
class="flex flex-col h-full w-full ltr:border-r border-slate-50 dark:border-slate-800/50"
:class="isOnExpandedLayout ? '' : 'min-w-[360px] max-w-[360px]'"
>
-
- {{ $t('INBOX.LIST.EOF') }} -