mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
26 lines
633 B
TypeScript
26 lines
633 B
TypeScript
///<reference path="../../../browser.d.ts"/>
|
|
|
|
import {Component, Input} from "@angular/core";
|
|
import {Directory} from "../../../../common/entities/Directory";
|
|
import {RouterLink} from "@angular/router-deprecated";
|
|
import {Utils} from "../../../../common/Utils";
|
|
|
|
@Component({
|
|
selector: 'gallery-directory',
|
|
templateUrl: 'app/gallery/directory/directory.gallery.component.html',
|
|
directives: [RouterLink],
|
|
})
|
|
export class GalleryDirectoryComponent {
|
|
@Input() directory:Directory;
|
|
|
|
constructor() {
|
|
}
|
|
|
|
getDirectoryPath() {
|
|
return Utils.concatUrls(this.directory.path, this.directory.name);
|
|
}
|
|
|
|
|
|
}
|
|
|