InvoiceOut PDF download fix
gitea/salix/master This commit looks good Details
gitea/salix/test This commit looks good Details

This commit is contained in:
Juan Ferrer 2019-12-24 10:17:41 +01:00
parent 4f0a54329a
commit 6c57220703
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ class Controller {
}
showInvoiceOutPdf() {
let url = `InvoiceOuts/${this.invoiceOut.id}/download?access_token=${this.accessToken}`;
let url = `api/InvoiceOuts/${this.invoiceOut.id}/download?access_token=${this.accessToken}`;
window.open(url, '_blank');
}

View File

@ -27,7 +27,7 @@ export default class Controller {
}
openPdf(id, event) {
let url = `InvoiceOuts/${id}/download?access_token=${this.accessToken}`;
let url = `api/InvoiceOuts/${id}/download?access_token=${this.accessToken}`;
window.open(url, '_blank');
event.preventDefault();
event.stopImmediatePropagation();