feat(image-import): wire open-image-import-btn + card-header layout
This commit is contained in:
parent
20f63e07cd
commit
7154edde86
3 changed files with 30 additions and 1 deletions
12
app.js
12
app.js
|
|
@ -46,6 +46,18 @@ class DienstplanApp {
|
|||
document.getElementById('month-select').addEventListener('change', () => this.loadDutiesForSelectedEmployee());
|
||||
document.getElementById('year-select').addEventListener('change', () => this.loadDutiesForSelectedEmployee());
|
||||
|
||||
// Bild-Import (Feature A)
|
||||
const imageImportBtn = document.getElementById('open-image-import-btn');
|
||||
if (imageImportBtn) {
|
||||
imageImportBtn.addEventListener('click', () => {
|
||||
if (window.imageImporter) {
|
||||
window.imageImporter.openImportDialog();
|
||||
} else {
|
||||
this.showToast('Bild-Import nicht verfuegbar.', 'error');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Calculation
|
||||
document.getElementById('calculate-btn').addEventListener('click', () => this.calculateBonuses());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue