mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-14 13:33:03 +00:00
79597: Add alt text to ds-thumbnail
This commit is contained in:
@@ -18,7 +18,6 @@ export const THUMBNAIL_PLACEHOLDER = 'data:image/svg+xml;charset=UTF-8,%3Csvg%20
|
||||
templateUrl: './thumbnail.component.html'
|
||||
})
|
||||
export class ThumbnailComponent implements OnInit {
|
||||
|
||||
/**
|
||||
* The thumbnail Bitstream
|
||||
*/
|
||||
@@ -34,6 +33,11 @@ export class ThumbnailComponent implements OnInit {
|
||||
*/
|
||||
src: string;
|
||||
|
||||
/**
|
||||
* i18n key of thumbnail alt text
|
||||
*/
|
||||
@Input() alt? = 'thumbnail.default.alt';
|
||||
|
||||
/**
|
||||
* Initialize the thumbnail.
|
||||
* Use a default image if no actual image is available.
|
||||
|
Reference in New Issue
Block a user