2016-03-20 21:05:51 +02:00
|
|
|
///<reference path="../../../browser.d.ts"/>
|
|
|
|
|
2016-05-04 17:20:21 +02:00
|
|
|
import {Component, Input} from '@angular/core';
|
2016-03-20 21:05:51 +02:00
|
|
|
import {Directory} from "../../../../common/entities/Directory";
|
2016-05-04 17:20:21 +02:00
|
|
|
import {RouterLink} from "@angular/router-deprecated";
|
2016-03-26 20:24:12 +02:00
|
|
|
import {Utils} from "../../../../common/Utils";
|
2016-03-20 21:05:51 +02:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'gallery-directory',
|
2016-03-26 17:25:48 +02:00
|
|
|
templateUrl: 'app/gallery/directory/directory.gallery.component.html',
|
2016-05-01 10:28:05 +02:00
|
|
|
directives:[RouterLink],
|
2016-03-20 21:05:51 +02:00
|
|
|
})
|
|
|
|
export class GalleryDirectoryComponent{
|
|
|
|
@Input() directory: Directory;
|
|
|
|
|
|
|
|
constructor() {
|
|
|
|
}
|
|
|
|
|
2016-03-26 20:24:12 +02:00
|
|
|
getDirectoryPath(){
|
|
|
|
return Utils.concatUrls(this.directory.path,this.directory.name);
|
|
|
|
}
|
|
|
|
|
2016-03-20 21:05:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|