Skip to content

Commit

Permalink
kruto
Browse files Browse the repository at this point in the history
  • Loading branch information
Satont committed Jun 10, 2024
1 parent 72fbe87 commit a78391c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions frontend/dashboard/src/api/overlays/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const useChatOverlayApi = createGlobalState(() => {
context: {
additionalTypenames: cacheKey,
},
variables: {},
})

const useOverlayDelete = () => useMutation(
Expand Down
2 changes: 1 addition & 1 deletion frontend/dashboard/src/pages/overlays/chat/Chat.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ async function handleClose(id: string) {
const entity = chatOverlaysData.value?.chatOverlays.find(s => s.id === id)
if (!entity?.id) return
await deleter.executeMutation(entity.id)
await deleter.executeMutation({ id: entity.id })
resetTab()
},
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,10 @@ async function save() {
<span>Animation</span>
<NSelect
v-model:value="formValue.animation"
clearable
:options="[
{ value: 'DEFAULT', label: 'Default' },
{ value: 'DISABLED', label: 'Disabled' },
]"
@on-clear="formValue.animation = null"
/>
</div>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { ChatOverlay } from '@/gql/graphql'

import { ChatOverlayAnimation } from '@/gql/graphql'

export type ChatSettingsWithOptionalId = Omit<ChatOverlay, 'id'> & { id?: string }

export const defaultChatSettings: ChatSettingsWithOptionalId = {
Expand All @@ -19,4 +21,5 @@ export const defaultChatSettings: ChatSettingsWithOptionalId = {
chatBackgroundColor: 'rgba(0, 0, 0, 0)',
direction: 'top',
paddingContainer: 0,
animation: ChatOverlayAnimation.Default,
}
2 changes: 1 addition & 1 deletion frontend/overlays/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"build": "pnpm codegen && vue-tsc && vite build",
"preview": "vite preview",
"codegen": "graphql-codegen"
},
Expand Down

0 comments on commit a78391c

Please sign in to comment.