generated from VLADIMIR/template_frontend
up
This commit is contained in:
@@ -6,12 +6,14 @@ import UiBlock from '@/components/UiBlock.vue'
|
||||
|
||||
defineProps<{
|
||||
teams: Team[]
|
||||
canPrintReceipts: boolean
|
||||
participationOptions: { label: string; value: string }[]
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
add: []
|
||||
'open-qr': [team: Team]
|
||||
print: [team: Team]
|
||||
preview: [id: string, password: string]
|
||||
delete: [team: Team]
|
||||
'give-application': [team: Team, application: Application]
|
||||
@@ -47,6 +49,12 @@ const emit = defineEmits<{
|
||||
</div>
|
||||
</div>
|
||||
<n-flex justify="end">
|
||||
<n-button
|
||||
v-if="canPrintReceipts && team.participationStatus !== 'cancelled'"
|
||||
@click="emit('print', team)"
|
||||
>
|
||||
Печать чека
|
||||
</n-button>
|
||||
<n-button v-if="team.participationStatus !== 'cancelled'" @click="emit('open-qr', team)"
|
||||
>QR</n-button
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user