mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-15 15:01:41 +00:00
#68 prettify download unsupported files
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user