1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00
pigallery2/frontend/app/gallery/directory/directory.gallery.component.ts

24 lines
585 B
TypeScript
Raw Normal View History

2016-05-09 17:04:56 +02:00
import {Component, Input} from "@angular/core";
2016-12-27 20:55:51 +01:00
import {DirectoryDTO} from "../../../../common/entities/DirectoryDTO";
2016-12-26 23:36:38 +01:00
import {RouterLink} from "@angular/router";
2016-03-26 19:24:12 +01:00
import {Utils} from "../../../../common/Utils";
2016-03-20 20:05:51 +01:00
@Component({
selector: 'gallery-directory',
2016-03-26 16:25:48 +01:00
templateUrl: 'app/gallery/directory/directory.gallery.component.html',
2016-12-26 23:36:38 +01:00
providers: [RouterLink],
2016-03-20 20:05:51 +01:00
})
2016-05-09 17:04:56 +02:00
export class GalleryDirectoryComponent {
2016-12-27 20:55:51 +01:00
@Input() directory: DirectoryDTO;
2016-05-09 17:04:56 +02:00
2016-03-20 20:05:51 +01:00
constructor() {
}
2016-05-09 17:04:56 +02:00
getDirectoryPath() {
return Utils.concatUrls(this.directory.path, this.directory.name);
2016-03-26 19:24:12 +01:00
}
2016-05-09 17:04:56 +02:00
2016-03-20 20:05:51 +01:00
}