Skip to content

Commit

Permalink
fixing lints
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Dec 11, 2024
1 parent 0fad00f commit 55d5292
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/components/bcros/header/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
class="flex flex-auto justify-end h-full text-white"
>
<div v-if="authenticated" class="flex flex-wrap self-center text-sm">
<BcrosHeaderMenu data-cy="logged-in-menu" :menu-lists="[{header: 'Notifications', items: notificationItems}]">
<BcrosHeaderMenu
data-cy="logged-in-menu"
:menu-lists="[{header: 'Notifications', items: notificationItems}]"
>
<template #menu-button-text>
<UChip color="red" position="top-right" :show="pendingApprovalCount > 0" :ui="{ base: 'ring-0'}">
<UIcon name="i-mdi-bell-outline" class="mr-2 text-2xl" />
Expand Down
4 changes: 3 additions & 1 deletion src/components/bcros/header/MenuItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
<UIcon v-if="itemInfo.icon" class="text-lg self-center mr-2" :name="itemInfo.icon" data-cy="menu-item-icon" />
<div v-else class="pl-[26px]" data-cy="menu-item-no-icon" />
<p>{{ itemInfo.label }}</p>
<p v-if="itemInfo.subLabel" class="text-xs opacity-75">{{ itemInfo.subLabel }}</p>
<p v-if="itemInfo.subLabel" class="text-xs opacity-75">
{{ itemInfo.subLabel }}
</p>
</button>
</MenuItem>
</template>
Expand Down
3 changes: 2 additions & 1 deletion src/stores/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ export const useBcrosAccount = defineStore('bcros/account', () => {
interface NotificationsResponse {
count: number
}
const response = await useBcrosFetch<NotificationsResponse>(`${apiURL}/users/${currentUserSub}/org/${accountId}/notifications`, {})
const url = `${apiURL}/users/${currentUserSub}/org/${accountId}/notifications`
const response = await useBcrosFetch<NotificationsResponse>(url, {})
return (response && response.data && response.data.count) || 0
} else {
return 0
Expand Down

0 comments on commit 55d5292

Please sign in to comment.