@@ -200,18 +200,6 @@ const getLabelUnreadCount = useMapGetter(
200200const getTeamUnreadCount = useMapGetter (
201201 ' conversationUnreadCounts/getTeamUnreadCount'
202202);
203- const mentionsUnreadCount = useMapGetter (
204- ' conversationUnreadCounts/getMentionsUnreadCount'
205- );
206- const participatingUnreadCount = useMapGetter (
207- ' conversationUnreadCounts/getParticipatingUnreadCount'
208- );
209- const unattendedUnreadCount = useMapGetter (
210- ' conversationUnreadCounts/getUnattendedUnreadCount'
211- );
212- const getFolderUnreadCount = useMapGetter (
213- ' conversationUnreadCounts/getFolderUnreadCount'
214- );
215203const teams = useMapGetter (' teams/getMyTeams' );
216204const contactCustomViews = useMapGetter (' customViews/getContactCustomViews' );
217205const conversationCustomViews = useMapGetter (
@@ -294,19 +282,6 @@ const sortedLabels = computed(() =>
294282 })
295283);
296284
297- const unreadBadgeTooltips = computed (() => ({
298- ALL : t (' SIDEBAR.UNREAD_COUNT_TOOLTIP.ALL' ),
299- INBOX : t (' SIDEBAR.UNREAD_COUNT_TOOLTIP.INBOX' ),
300- LABEL : t (' SIDEBAR.UNREAD_COUNT_TOOLTIP.LABEL' ),
301- TEAM : t (' SIDEBAR.UNREAD_COUNT_TOOLTIP.TEAM' ),
302- FOLDER : t (' SIDEBAR.UNREAD_COUNT_TOOLTIP.FOLDER' ),
303- MENTIONS : t (' SIDEBAR.UNREAD_COUNT_TOOLTIP.MENTIONS' ),
304- PARTICIPATING : t (' SIDEBAR.UNREAD_COUNT_TOOLTIP.PARTICIPATING' ),
305- UNATTENDED : t (' SIDEBAR.UNREAD_COUNT_TOOLTIP.UNATTENDED' ),
306- }));
307-
308- const unreadBadgeTooltip = type => unreadBadgeTooltips .value [type];
309-
310285const closeMobileSidebar = () => {
311286 if (! props .isMobileSidebarOpen ) return ;
312287 emit (' closeMobileSidebar' );
@@ -362,33 +337,26 @@ const menuItems = computed(() => {
362337 label: t (' SIDEBAR.ALL_CONVERSATIONS' ),
363338 icon: ' i-lucide-inbox' ,
364339 badgeCount: allUnreadCount .value ,
365- badgeTooltip: unreadBadgeTooltip (' ALL' ),
366340 activeOn: [' inbox_conversation' ],
367341 to: accountScopedRoute (' home' ),
368342 },
369343 {
370344 name: ' Mentions' ,
371345 label: t (' SIDEBAR.MENTIONED_CONVERSATIONS' ),
372- badgeCount: mentionsUnreadCount .value ,
373- badgeTooltip: unreadBadgeTooltip (' MENTIONS' ),
374346 icon: ' i-lucide-at-sign' ,
375347 activeOn: [' conversation_through_mentions' ],
376348 to: accountScopedRoute (' conversation_mentions' ),
377349 },
378350 {
379351 name: ' Participating' ,
380352 label: t (' SIDEBAR.PARTICIPATING_CONVERSATIONS' ),
381- badgeCount: participatingUnreadCount .value ,
382- badgeTooltip: unreadBadgeTooltip (' PARTICIPATING' ),
383353 icon: ' i-lucide-user-round-check' ,
384354 activeOn: [' conversation_through_participating' ],
385355 to: accountScopedRoute (' conversation_participating' ),
386356 },
387357 {
388358 name: ' Unattended' ,
389359 activeOn: [' conversation_through_unattended' ],
390- badgeCount: unattendedUnreadCount .value ,
391- badgeTooltip: unreadBadgeTooltip (' UNATTENDED' ),
392360 label: t (' SIDEBAR.UNATTENDED_CONVERSATIONS' ),
393361 icon: ' i-lucide-clock-alert' ,
394362 to: accountScopedRoute (' conversation_unattended' ),
@@ -404,8 +372,6 @@ const menuItems = computed(() => {
404372 children: sortedFolders .value .map (view => ({
405373 name: ` ${ view .name } -${ view .id } ` ,
406374 label: view .name ,
407- badgeCount: getFolderUnreadCount .value (view .id ),
408- badgeTooltip: unreadBadgeTooltip (' FOLDER' ),
409375 to: accountScopedRoute (' folder_conversations' , { id: view .id }),
410376 })),
411377 },
@@ -421,7 +387,6 @@ const menuItems = computed(() => {
421387 name: ` ${ team .name } -${ team .id } ` ,
422388 label: team .name ,
423389 badgeCount: getTeamUnreadCount .value (team .id ),
424- badgeTooltip: unreadBadgeTooltip (' TEAM' ),
425390 to: accountScopedRoute (' team_conversations' , { teamId: team .id }),
426391 })),
427392 },
@@ -437,7 +402,6 @@ const menuItems = computed(() => {
437402 name: ` ${ inbox .name } -${ inbox .id } ` ,
438403 label: inbox .name ,
439404 badgeCount: getInboxUnreadCount .value (inbox .id ),
440- badgeTooltip: unreadBadgeTooltip (' INBOX' ),
441405 icon: h (ChannelIcon, { inbox, class: ' size-[16px]' }),
442406 to: accountScopedRoute (' inbox_dashboard' , { inbox_id: inbox .id }),
443407 component : leafProps =>
@@ -446,7 +410,6 @@ const menuItems = computed(() => {
446410 active: leafProps .active ,
447411 inbox,
448412 badgeCount: leafProps .badgeCount ,
449- badgeTooltip: leafProps .badgeTooltip ,
450413 }),
451414 })),
452415 },
@@ -462,7 +425,6 @@ const menuItems = computed(() => {
462425 name: ` ${ label .title } -${ label .id } ` ,
463426 label: label .title ,
464427 badgeCount: getLabelUnreadCount .value (label .id ),
465- badgeTooltip: unreadBadgeTooltip (' LABEL' ),
466428 icon: h (' span' , {
467429 class: ` size-[8px] rounded-sm` ,
468430 style: { backgroundColor: label .color },
0 commit comments