2019-11-12 16:55:37 +01:00
|
|
|
import {Component, OnDestroy, OnInit} from '@angular/core';
|
2019-11-05 15:59:06 +01:00
|
|
|
import {SideBarService} from "../library/sharedComponents/sidebar/sideBar.service";
|
|
|
|
|
2019-10-24 09:44:29 +02:00
|
|
|
@Component({
|
|
|
|
selector: 'openaire-error',
|
|
|
|
template: `
|
|
|
|
<error></error>
|
|
|
|
`
|
|
|
|
})
|
2019-11-12 16:55:37 +01:00
|
|
|
export class OpenaireErrorPageComponent implements OnInit, OnDestroy{
|
2019-10-24 09:44:29 +02:00
|
|
|
|
2019-11-05 15:59:06 +01:00
|
|
|
constructor(private sidebarService: SideBarService) {}
|
2019-10-24 09:44:29 +02:00
|
|
|
|
2019-11-05 15:59:06 +01:00
|
|
|
ngOnInit(): void {
|
|
|
|
this.sidebarService.setHasSidebar(false);
|
|
|
|
}
|
2019-11-12 16:55:37 +01:00
|
|
|
|
|
|
|
ngOnDestroy(): void {
|
|
|
|
this.sidebarService.setHasSidebar(true);
|
|
|
|
}
|
2019-10-24 09:44:29 +02:00
|
|
|
}
|