|
|
@ -45,6 +45,7 @@ export class FileGalleryComponent implements OnChanges, OnInit, AfterViewInit, A
|
|
|
|
public fileContentUrl: SafeResourceUrl | undefined;
|
|
|
|
public fileContentUrl: SafeResourceUrl | undefined;
|
|
|
|
public fileChanged = new BehaviorSubject<void>(undefined);
|
|
|
|
public fileChanged = new BehaviorSubject<void>(undefined);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public selectedIndex = 0;
|
|
|
|
public imageViewHeightPercent = 80;
|
|
|
|
public imageViewHeightPercent = 80;
|
|
|
|
public previewStripVisible = true;
|
|
|
|
public previewStripVisible = true;
|
|
|
|
public previewedEntries: (Selectable<File> | undefined)[] = [];
|
|
|
|
public previewedEntries: (Selectable<File> | undefined)[] = [];
|
|
|
@ -103,6 +104,7 @@ export class FileGalleryComponent implements OnChanges, OnInit, AfterViewInit, A
|
|
|
|
this.selectedFile?.unselect();
|
|
|
|
this.selectedFile?.unselect();
|
|
|
|
entry.select();
|
|
|
|
entry.select();
|
|
|
|
this.selectedFile = entry;
|
|
|
|
this.selectedFile = entry;
|
|
|
|
|
|
|
|
this.selectedIndex = this.entries.indexOf(entry);
|
|
|
|
await this.loadSelectedFile();
|
|
|
|
await this.loadSelectedFile();
|
|
|
|
|
|
|
|
|
|
|
|
this.fileSelect.emit(this.selectedFile.data);
|
|
|
|
this.fileSelect.emit(this.selectedFile.data);
|
|
|
|