Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/frontend/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export default defineNuxtConfig({
compatibilityDate: '2025-01-01',
telemetry: false,
experimental: {
asyncContext: true,
asyncContext: isProduction(),
},
})

Expand Down
18 changes: 5 additions & 13 deletions apps/frontend/src/components/ui/moderation/ModerationQueueCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,20 @@ import dayjs from 'dayjs'
import { computed } from 'vue'

import type { ModerationProject } from '~/helpers/moderation'
import { useModerationStore } from '~/store/moderation.ts'

const { addNotification } = injectNotificationManager()
const formatRelativeTime = useRelativeTime()
const moderationStore = useModerationStore()

const baseId = useId()

const props = defineProps<{
queueEntry: ModerationProject
}>()

const emit = defineEmits<{
startFromProject: [projectId: string]
}>()

function getDaysQueued(date: Date): number {
const now = new Date()
const diff = now.getTime() - date.getTime()
Expand Down Expand Up @@ -201,16 +203,6 @@ const quickActions: OverflowMenuOption[] = [
]

function openProjectForReview() {
moderationStore.setSingleProject(props.queueEntry.project.id)
navigateTo({
name: 'type-id',
params: {
type: 'project',
id: props.queueEntry.project.slug || props.queueEntry.project.id,
},
state: {
showChecklist: true,
},
})
emit('startFromProject', props.queueEntry.project.id)
}
</script>
Loading