refactor: rename agreement to proof

This commit is contained in:
2025-11-29 14:56:33 +01:00
parent 5b84b67a65
commit 6801132921
10 changed files with 57 additions and 47 deletions

View File

@@ -13,8 +13,8 @@ async function requestDownload() {
loading.value = true;
try {
const agreement = await client<Blob>(`/api/internships/${props.internship_id}/default-agreement`);
triggerDownload(agreement, `default-agreement-${props.internship_id}`);
const proof = await client<Blob>(`/api/internships/${props.internship_id}/default-proof`);
triggerDownload(proof, `default-proof-${props.internship_id}`);
} catch (e) {
if (e instanceof FetchError) {
alert(`Nepodarilo sa vygenerovať zmluvu: ${e.statusMessage}`);