Skip to content

Commit

Permalink
Merge pull request #2677 from DSpace/backport-2673-to-dspace-7_x
Browse files Browse the repository at this point in the history
[Port dspace-7_x] Fix for loading thumbnail images for Items when MediaViewer enabled
  • Loading branch information
tdonohue authored Nov 30, 2023
2 parents 5b59d37 + 9c69a77 commit 5de6ced
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/item-page/media-viewer/media-viewer.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, Input, OnDestroy, OnInit } from '@angular/core';
import { ChangeDetectorRef, Component, Input, OnDestroy, OnInit } from '@angular/core';
import { BehaviorSubject, Observable } from 'rxjs';
import { filter, take } from 'rxjs/operators';
import { BitstreamDataService } from '../../core/data/bitstream-data.service';
Expand Down Expand Up @@ -42,6 +42,7 @@ export class MediaViewerComponent implements OnDestroy, OnInit {

constructor(
protected bitstreamDataService: BitstreamDataService,
protected changeDetectorRef: ChangeDetectorRef
) {
}

Expand Down Expand Up @@ -85,6 +86,7 @@ export class MediaViewerComponent implements OnDestroy, OnInit {
}));
}
this.isLoading = false;
this.changeDetectorRef.detectChanges();
}));
}
}));
Expand Down

0 comments on commit 5de6ced

Please sign in to comment.