mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
don't show the loading animation when src is set to null
This commit is contained in:
@@ -198,11 +198,11 @@ export class ThumbnailComponent implements OnChanges {
|
|||||||
// isLoading$ will be set to false by the error or success handler afterwards, except in the
|
// isLoading$ will be set to false by the error or success handler afterwards, except in the
|
||||||
// case where src is null, then we have to set it manually here (because those handlers won't
|
// case where src is null, then we have to set it manually here (because those handlers won't
|
||||||
// trigger)
|
// trigger)
|
||||||
if (this.isLoading$.getValue() === false) {
|
if (src !== null && this.isLoading$.getValue() === false) {
|
||||||
this.isLoading$.next(true);
|
this.isLoading$.next(true);
|
||||||
}
|
}
|
||||||
this.src$.next(src);
|
this.src$.next(src);
|
||||||
if (src === null) {
|
if (src === null && this.isLoading$.getValue() === true) {
|
||||||
this.isLoading$.next(false);
|
this.isLoading$.next(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user