Merge pull request #6172 from tsiegleauq/zip-export-dot
Fix missing zip extension when filename had a dot
This commit is contained in:
commit
73f98ff55e
@ -147,7 +147,7 @@ export class MediafileRepositoryService extends BaseIsListOfSpeakersContentObjec
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const archive = await zip.generateAsync({ type: 'blob' });
|
const archive = await zip.generateAsync({ type: 'blob' });
|
||||||
saveAs(archive, archiveName);
|
saveAs(archive, `${archiveName}.zip`);
|
||||||
}
|
}
|
||||||
|
|
||||||
public getDirectoryBehaviorSubject(): BehaviorSubject<ViewMediafile[]> {
|
public getDirectoryBehaviorSubject(): BehaviorSubject<ViewMediafile[]> {
|
||||||
|
@ -461,9 +461,6 @@ export class MediafileListComponent extends BaseListViewComponent<ViewMediafile>
|
|||||||
}
|
}
|
||||||
|
|
||||||
public downloadMultiple(mediafiles: ViewMediafile[] = this.dataSource.source): void {
|
public downloadMultiple(mediafiles: ViewMediafile[] = this.dataSource.source): void {
|
||||||
/**
|
|
||||||
* TODO: naming the files is discussable
|
|
||||||
*/
|
|
||||||
const eventName = this.configService.instant<string>('general_event_name');
|
const eventName = this.configService.instant<string>('general_event_name');
|
||||||
const dirName = this.directory?.filename ?? this.translate.instant('Files');
|
const dirName = this.directory?.filename ?? this.translate.instant('Files');
|
||||||
const archiveName = `${eventName} - ${dirName}`.trim();
|
const archiveName = `${eventName} - ${dirName}`.trim();
|
||||||
|
Loading…
Reference in New Issue
Block a user