osb/spark/resources/assets/js/settings/invoices/invoice-list.js
2017-11-03 16:26:07 +11:00

16 lines
425 B
JavaScript
Vendored

module.exports = {
props: ['user', 'team', 'invoices', 'billableType'],
methods: {
/**
* Get the URL for downloading a given invoice.
*/
downloadUrlFor(invoice) {
return this.billingUser
? `/settings/invoice/${invoice.id}`
: `/settings/${Spark.pluralTeamString}/${this.team.id}/invoice/${invoice.id}`;
}
}
};