1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-16 11:37:13 +02:00
pigallery2/frontend/app/gallery/directory/directory.gallery.component.ts
2016-12-27 20:55:51 +01:00

24 lines
585 B
TypeScript

import {Component, Input} from "@angular/core";
import {DirectoryDTO} from "../../../../common/entities/DirectoryDTO";
import {RouterLink} from "@angular/router";
import {Utils} from "../../../../common/Utils";
@Component({
selector: 'gallery-directory',
templateUrl: 'app/gallery/directory/directory.gallery.component.html',
providers: [RouterLink],
})
export class GalleryDirectoryComponent {
@Input() directory: DirectoryDTO;
constructor() {
}
getDirectoryPath() {
return Utils.concatUrls(this.directory.path, this.directory.name);
}
}