You've already forked isop-mirror
feat: add download for default agreement
This commit is contained in:
@@ -13,8 +13,8 @@ async function requestDownload() {
|
|||||||
loading.value = true;
|
loading.value = true;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const agreement = await client(`/api/internships/${props.internship_id}/default-agreement`);
|
const agreement = await client<Blob>(`/api/internships/${props.internship_id}/default-agreement`);
|
||||||
// todo...
|
triggerDownload(agreement, `default-agreement-${props.internship_id}.pdf`);
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e instanceof FetchError) {
|
if (e instanceof FetchError) {
|
||||||
|
|||||||
Reference in New Issue
Block a user