export docx
This commit is contained in:
@@ -9,6 +9,7 @@ import {Song} from '../../songs/services/song';
|
||||
import {MatSelectChange} from '@angular/material/select';
|
||||
import {ShowSongService} from '../services/show-song.service';
|
||||
import {ShowSong} from '../services/showSong';
|
||||
import {DocxService} from '../services/docx.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-show',
|
||||
@@ -27,6 +28,7 @@ export class ShowComponent implements OnInit {
|
||||
private showService: ShowService,
|
||||
private songService: SongService,
|
||||
private showSongService: ShowSongService,
|
||||
private docxService: DocxService,
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -83,4 +85,8 @@ export class ShowComponent implements OnInit {
|
||||
if (show.reported) return 'gemeldet';
|
||||
return 'entwurf';
|
||||
}
|
||||
|
||||
public async onDownload(): Promise<void> {
|
||||
await this.docxService.create(this.showId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user