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