All files / src/views ExportsPage.vue

100% Statements 4/4
100% Branches 2/2
100% Functions 1/1
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23  2x       2x                           2x 2x    
<template>
  <PageLayout :title="t('exportJobs.title')" class="exports-page" scrollable>
    <!-- Export jobs are flow-scoped (GET /v1/entities/export/jobs requires an
         active flow) — show the notice instead of letting the section hit a
         403/401, whether the user got here via the sidebar (already gated) or
         a direct navigation/bookmark to /exports with no flow selected. -->
    <NoActiveFlowNotice v-if="!authStore.currentFlow" />
    <ExportJobsSection v-else />
  </PageLayout>
</template>
 
<script setup lang="ts">
// @implements UC-ENTITY-024.1
import PageLayout from '@/components/PageLayout.vue'
import ExportJobsSection from '@/components/ExportJobsSection.vue'
import NoActiveFlowNotice from '@/components/NoActiveFlowNotice.vue'
import { useAuthStore } from '@/stores/auth'
import { useUILanguage } from '@/composables/useUILanguage'
 
const authStore = useAuthStore()
const { t } = useUILanguage()
</script>