removed remaining normalized models and related services

This commit is contained in:
Art Lowel
2020-02-14 18:06:17 +01:00
parent 884e94a08b
commit bc7c92f44c
104 changed files with 397 additions and 1343 deletions

View File

@@ -1,4 +1,4 @@
import { Component, Input } from '@angular/core';
import { Component, Input, OnInit } from '@angular/core';
import { Bitstream } from '../core/shared/bitstream.model';
import { hasValue } from '../shared/empty.util';
@@ -13,16 +13,9 @@ import { hasValue } from '../shared/empty.util';
styleUrls: ['./thumbnail.component.scss'],
templateUrl: './thumbnail.component.html'
})
export class ThumbnailComponent {
export class ThumbnailComponent implements OnInit {
private _thumbnail: Bitstream;
get thumbnail(): Bitstream {
return this._thumbnail;
};
@Input() set thumbnail(t: Bitstream) {
this._thumbnail = t;
ngOnInit(): void {
if (hasValue(this.thumbnail) && hasValue(this.thumbnail._links) && hasValue(this.thumbnail._links.content) && this.thumbnail._links.content.href) {
this.src = this.thumbnail._links.content.href;
} else {
@@ -30,6 +23,8 @@ export class ThumbnailComponent {
}
}
@Input() thumbnail: Bitstream;
/**
* The default 'holder.js' image
*/