Added missing addAddress method

This commit is contained in:
Torsten Schulz
2025-07-15 15:46:43 +02:00
parent f935c72f56
commit 9ba39f9f47

View File

@@ -178,7 +178,25 @@ export default {
});
return uniqueLocations;
}
},
addAddress(clubName, addressLines) {
if (!this.addressY) {
this.addressY = 30;
}
this.doc.setFontSize(14);
this.doc.setFont(undefined, 'bold');
this.doc.text(clubName, 20, this.addressY);
this.doc.setFontSize(12);
this.doc.setFont(undefined, 'normal');
addressLines.forEach(line => {
this.addressY += 7;
this.doc.text(line, 20, this.addressY);
});
this.addressY += 10; // Abstand zur nächsten Adresse
},
},
async created() {
await this.loadLeagues();