feature: add handoff report
This commit is contained in:
@@ -3,8 +3,10 @@ import { storeToRefs } from 'pinia'
|
||||
import { useWardStore } from '@/stores/ward'
|
||||
import Button from '@/components/ui/Button.vue'
|
||||
|
||||
const emit = defineEmits(['export-handoff'])
|
||||
|
||||
const wardStore = useWardStore()
|
||||
const { searchInput, filters, hasActiveFilters } = storeToRefs(wardStore)
|
||||
const { searchInput, filters, hasActiveFilters, encounters } = storeToRefs(wardStore)
|
||||
|
||||
const filterOptions = [
|
||||
{ key: 'hasAlerts', label: 'Has alerts' },
|
||||
@@ -45,6 +47,15 @@ const filterOptions = [
|
||||
>
|
||||
Clear filters
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
size="sm"
|
||||
variant="secondary"
|
||||
:disabled="encounters.length === 0"
|
||||
@click="emit('export-handoff')"
|
||||
>
|
||||
Export Handoff Report
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user