This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
site-base/spark/resources/assets/js/settings/invoices/invoice-list.js

16 lines
425 B
JavaScript
Raw Normal View History

2017-11-03 05:26:07 +00:00
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}`;
}
}
};