diff --git a/apps/app/.eslintrc.cjs b/apps/app/.eslintrc.cjs index a3d12025..369d97a1 100644 --- a/apps/app/.eslintrc.cjs +++ b/apps/app/.eslintrc.cjs @@ -40,6 +40,8 @@ module.exports = { '*.d.ts', 'vendor', '*.json', + 'src/@core/**', + 'src/@layouts/**', ], rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', diff --git a/apps/app/src/components/shifts/ShiftDetailPanel.vue b/apps/app/src/components/shifts/ShiftDetailPanel.vue index 2821c6c4..717fbf78 100644 --- a/apps/app/src/components/shifts/ShiftDetailPanel.vue +++ b/apps/app/src/components/shifts/ShiftDetailPanel.vue @@ -245,6 +245,10 @@ function executeApprove(assignment: ShiftAssignment) { }) } +// Cancel dialog +const isCancelDialogOpen = ref(false) +const cancellingAssignment = ref(null) + function onCancel(assignment: ShiftAssignment) { cancellingAssignment.value = assignment isCancelDialogOpen.value = true @@ -302,10 +306,6 @@ function onRejectExecute() { ) } -// Cancel dialog -const isCancelDialogOpen = ref(false) -const cancellingAssignment = ref(null) - // Bulk approve dialog const isBulkApproveDialogOpen = ref(false) diff --git a/apps/app/src/composables/api/useFormSchemas.ts b/apps/app/src/composables/api/useFormSchemas.ts index 821ba253..56a12383 100644 --- a/apps/app/src/composables/api/useFormSchemas.ts +++ b/apps/app/src/composables/api/useFormSchemas.ts @@ -94,9 +94,9 @@ export function useDeleteFormSchema(orgId: Ref) { const queryClient = useQueryClient() return useMutation({ - mutationFn: async ({ id, confirmed_name }: { id: string; confirmed_name?: string }) => { + mutationFn: async ({ id, confirmedName }: { id: string; confirmedName?: string }) => { await apiClient.delete(`/organisations/${orgId.value}/forms/schemas/${id}`, { - params: confirmed_name ? { confirmed_name } : undefined, + params: confirmedName ? { confirmed_name: confirmedName } : undefined, }) }, onSuccess: () => { diff --git a/apps/app/src/layouts/blank.vue b/apps/app/src/layouts/blank.vue index c813e810..04a649a3 100644 --- a/apps/app/src/layouts/blank.vue +++ b/apps/app/src/layouts/blank.vue @@ -1,4 +1,6 @@