diff --git a/src/app/series-detail/series-detail.component.html b/src/app/series-detail/series-detail.component.html
index 65303a02e..8a6510bbf 100644
--- a/src/app/series-detail/series-detail.component.html
+++ b/src/app/series-detail/series-detail.component.html
@@ -22,7 +22,8 @@
-
 ? placeholderImage : imageUrl}})
+
0 || actions.length > 0">
diff --git a/src/app/shared/card-item/card-item.component.ts b/src/app/shared/card-item/card-item.component.ts
index bbaafe27f..8c0b217f7 100644
--- a/src/app/shared/card-item/card-item.component.ts
+++ b/src/app/shared/card-item/card-item.component.ts
@@ -1,4 +1,5 @@
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
+import { DomSanitizer } from '@angular/platform-browser';
export interface CardItemAction {
@@ -19,12 +20,13 @@ export class CardItemComponent implements OnInit {
@Input() entity: any; // This is the entity we are representing. It will be returned if an action is executed.
@Output() clicked = new EventEmitter();
-
+ safeImage: any;
placeholderImage = 'assets/images/image-placeholder.jpg';
- constructor() { }
+ constructor(private sanitizer: DomSanitizer) { }
ngOnInit(): void {
+ this.createSafeImage(this.imageUrl);
}
handleClick() {
@@ -42,4 +44,9 @@ export class CardItemComponent implements OnInit {
}
}
+ createSafeImage(coverImage: string) {
+ let imageUrl = 'data:image/jpeg;base64,' + coverImage;
+ this.safeImage = this.sanitizer.bypassSecurityTrustUrl(imageUrl);
+ }
+
}