diff --git a/frontend/dashboard/src/api/admin/notifications.ts b/frontend/dashboard/src/api/admin/notifications.ts index 86ef00bc5..6b4875b06 100644 --- a/frontend/dashboard/src/api/admin/notifications.ts +++ b/frontend/dashboard/src/api/admin/notifications.ts @@ -19,7 +19,7 @@ export function useQueryNotifications() { createdAt } } - `) + `), }) const { data: newNotifications } = useSubscription({ @@ -31,7 +31,7 @@ export function useQueryNotifications() { createdAt } } - `) + `), }) watch(newNotifications, (newNotification) => { @@ -50,11 +50,11 @@ export function useQueryNotifications() { export function useAdminNotifications() { const useQueryNotifications = (variables: Ref) => useQuery({ context: { - additionalTypenames: [invalidationKey] + additionalTypenames: [invalidationKey], }, get variables() { return { - opts: variables.value + opts: variables.value, } }, query: graphql(` @@ -66,6 +66,7 @@ export function useAdminNotifications() { text userId twitchProfile { + login displayName profileImageUrl } @@ -73,7 +74,7 @@ export function useAdminNotifications() { } } } - `) + `), }) const useMutationCreateNotification = () => useMutation(graphql(` @@ -102,6 +103,6 @@ export function useAdminNotifications() { useQueryNotifications, useMutationCreateNotification, useMutationDeleteNotification, - useMutationUpdateNotifications + useMutationUpdateNotifications, } } diff --git a/frontend/dashboard/src/api/greetings.ts b/frontend/dashboard/src/api/greetings.ts index 3b92ae5bb..28b218520 100644 --- a/frontend/dashboard/src/api/greetings.ts +++ b/frontend/dashboard/src/api/greetings.ts @@ -29,7 +29,7 @@ export const useGreetingsApi = defineStore('api/greetings', () => { } } } - `) + `), }) const useMutationCreateGreetings = () => useMutation(graphql(` @@ -58,6 +58,6 @@ export const useGreetingsApi = defineStore('api/greetings', () => { useQueryGreetings, useMutationCreateGreetings, useMutationUpdateGreetings, - useMutationRemoveGreetings + useMutationRemoveGreetings, } }) diff --git a/frontend/dashboard/src/components/dialog-or-sheet.vue b/frontend/dashboard/src/components/dialog-or-sheet.vue index f3b6e9bb1..b388c2564 100644 --- a/frontend/dashboard/src/components/dialog-or-sheet.vue +++ b/frontend/dashboard/src/components/dialog-or-sheet.vue @@ -5,12 +5,18 @@ import { DialogContent } from '@/components/ui/dialog' import { SheetContent } from '@/components/ui/sheet' const { width: windowWidth } = useWindowSize() + +function onInteractOutside(event: any) { + if ((event.target as HTMLElement)?.closest('[role="dialog"]')) return + event.preventDefault() +}