Fix filename shown in title area of viewer component

This commit is contained in:
Will Abson
2016-06-10 12:20:59 +01:00
parent de80f3bca9
commit f0e00e39c3
7 changed files with 32 additions and 6 deletions

View File

@@ -37,6 +37,7 @@ declare let __moduleName: string;
export class SearchBarComponent {
urlFile: string;
fileName: string;
mimeType: string;
fileShowed: boolean = false;
@@ -65,6 +66,7 @@ export class SearchBarComponent {
onFileClicked(event) {
if (event.value.entry.isFile) {
this.fileName = event.value.entry.name;
this.mimeType = event.value.entry.content.mimeType;
this.urlFile = this.contentService.getContentUrl(event.value);
this.fileShowed = true;