#68 prettify download unsupported files

This commit is contained in:
Eugenio Romano
2016-06-08 02:11:23 +01:00
parent 5e43ec41b6
commit 65d5535407
5 changed files with 45 additions and 8 deletions

View File

@@ -157,10 +157,22 @@ export class ViewerComponent {
return localStorage.getItem('token');
}
/**
* Hide the othe possible menu in th eapplication
*/
private hideOtherMenu() {
this.otherMenu = document.querySelector("header");
if (this.otherMenu) {
this.otherMenu.hidden = true;
if (this.overlayMode) {
this.otherMenu = document.querySelector('header');
if (this.otherMenu) {
this.otherMenu.hidden = true;
}
}
}
/**
* Download file
*/
private download(){
window.open(this.urlFile);
}
}