mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-16 11:37:13 +02:00
24 lines
585 B
TypeScript
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);
|
|
}
|
|
|
|
|
|
}
|
|
|