2017-08-02 18:50:50 +02:00
|
|
|
import {Component, Input, OnInit} from '@angular/core';
|
|
|
|
|
|
|
|
|
|
import {environment} from "../../../environments/environment";
|
|
|
|
|
import {KanbanEntry} from "../shared/kanban-entry.model";
|
|
|
|
|
|
2017-08-15 16:39:19 +02:00
|
|
|
const DEFAULT_AVATAR = '/assets/riddler.png';
|
|
|
|
|
|
2017-08-02 18:50:50 +02:00
|
|
|
@Component({
|
2017-08-15 16:39:19 +02:00
|
|
|
selector: 'app-kanban-entry-item,[app-kanban-entry-item]',
|
2017-08-02 18:50:50 +02:00
|
|
|
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 {
|
2017-08-15 16:39:19 +02:00
|
|
|
return environment.apiUri + ( avatarPath ? avatarPath : DEFAULT_AVATAR );
|
2017-08-02 18:50:50 +02:00
|
|
|
}
|
|
|
|
|
}
|