Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Dec 19, 2024
1 parent 3b79e79 commit c12119f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/dashboard/src/api/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const profileQuery = createRequest(graphql(`
login
displayName
profileImageUrl
offlineImageUrl
}
availableDashboards {
id
Expand All @@ -38,7 +39,6 @@ export const profileQuery = createRequest(graphql(`
login
displayName
profileImageUrl
offlineImageUrl
}
}
}
Expand Down
7 changes: 5 additions & 2 deletions frontend/dashboard/src/features/dashboard/widgets/stream.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ onBeforeUnmount(() => {
pauseUptimeInterval()
})
const settings = useLocalStorage<{ name: string, visible: string }>('twirWidgetsStream', {
const settings = useLocalStorage<{
showPreview: boolean
visibility: Record<string, boolean>
}>('twirWidgetsStream', {
showPreview: true,
visibility: {
messages: true,
Expand All @@ -81,7 +84,7 @@ const statsItems = computed<{
{
key: 'messages',
name: t(`dashboard.statsWidgets.messages`),
count: stats.value.messages ?? 0,
count: stats.value.chatMessages ?? 0,
icon: MessageCircleIcon,
},
{
Expand Down

0 comments on commit c12119f

Please sign in to comment.