taurus-tv/src/app/kanban/kanban-entry-item/kanban-entry-item.component.ts

26 lines
670 B
TypeScript
Raw Normal View History

import {Component, Input, OnInit} from '@angular/core';
import {environment} from "../../../environments/environment";
import {KanbanEntry} from "../shared/kanban-entry.model";
@Component({
selector: 'app-kanban-entry-item',
templateUrl: './kanban-entry-item.component.html',
styleUrls: ['./kanban-entry-item.component.css']
})
export class KanbanEntryItemComponent implements OnInit {
@Input() kanbanEntries: Array<KanbanEntry>;
constructor() {}
ngOnInit() {}
public avatarUrl(avatarPath: string): string {
try {
return environment.apiUri + avatarPath;
} catch (e) {
return "";
}
}
}