Untitled
unknown
typescript
a year ago
885 B
3
Indexable
const salesOptions = computed<MenuOption[]>(() => {
return [
{
label: () =>
!isDraftEvent.value && !isFreeEvent.value
? h(
RouterLink,
{
to: {
name: 'refunds-and-invoicing',
params: {
id: props.event.id as string,
},
},
},
{ default: () => 'Invoices & Refunds' },
)
: 'Invoices & Refunds',
key: 'refundsAndInvoicing',
icon: renderIcon('fa-solid fa-file-invoice-dollar'),
disabled: isDraftEvent.value || isFreeEvent.value,
},
];
});Editor is loading...
Leave a Comment