mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 22:13:02 +00:00
#674 ad doctype
This commit is contained in:
@@ -36,6 +36,9 @@ export class GridThumbnailComponent implements OnInit, OnChanges {
|
|||||||
event.currentTarget.src = this.defaultImage;
|
event.currentTarget.src = this.defaultImage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialize the src
|
||||||
|
*/
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.src = this.defaultImage;
|
this.src = this.defaultImage;
|
||||||
|
|
||||||
@@ -51,6 +54,9 @@ export class GridThumbnailComponent implements OnInit, OnChanges {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* check if the Bitstream has any content than set the src
|
||||||
|
*/
|
||||||
checkThumbnail(thumbnail: Bitstream) {
|
checkThumbnail(thumbnail: Bitstream) {
|
||||||
if (
|
if (
|
||||||
hasValue(thumbnail) &&
|
hasValue(thumbnail) &&
|
||||||
|
Reference in New Issue
Block a user