-
+
+
\ No newline at end of file
diff --git a/frontend/app/gallery/gallery.component.ts b/frontend/app/gallery/gallery.component.ts
index ef7562be..213c3606 100644
--- a/frontend/app/gallery/gallery.component.ts
+++ b/frontend/app/gallery/gallery.component.ts
@@ -17,7 +17,7 @@ import {GalleryDirectoryComponent} from "./directory/directory.gallery.component
})
export class GalleryComponent implements OnInit{
- directory:Directory = new Directory(-1,"","/",new Date(),[],[]);
+ currentDirectory:Directory = new Directory(-1,"","/",new Date(),[],[]);
constructor(private _galleryService:GalleryService,
private _params: RouteParams,
@@ -41,7 +41,7 @@ export class GalleryComponent implements OnInit{
return;
}
- this.directory = message.result;
+ this.currentDirectory = message.result;
});
}
diff --git a/frontend/app/gallery/photo/photo.gallery.component.ts b/frontend/app/gallery/photo/photo.gallery.component.ts
index 600d5a04..7bbe1b8c 100644
--- a/frontend/app/gallery/photo/photo.gallery.component.ts
+++ b/frontend/app/gallery/photo/photo.gallery.component.ts
@@ -2,6 +2,8 @@
import {Component, Input, OnInit} from 'angular2/core';
import {Photo} from "../../../../common/entities/Photo";
+import {Directory} from "../../../../common/entities/Directory";
+import {Utils} from "../../../../common/Utils";
@Component({
selector: 'gallery-photo',
@@ -9,12 +11,14 @@ import {Photo} from "../../../../common/entities/Photo";
})
export class GalleryPhotoComponent{
@Input() photo: Photo;
+ @Input() directory: Directory;
constructor() {
}
getPhotoPath(){
- return "/api/gallery/"+this.photo.name;
+ console.log(Utils.concatUrls("/api/gallery",this.directory.path,this.directory.name,this.photo.name));
+ return Utils.concatUrls("/api/gallery",this.directory.path,this.directory.name,this.photo.name);
}
}