[Library|Trunk]

-page-content.component.ts: add check about subscription destroy
- remove default icon



git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59764 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2020-11-04 11:09:21 +00:00
parent ef4730ce00
commit 3ef94dafb5
2 changed files with 5 additions and 3 deletions

View File

@ -73,6 +73,8 @@ export class PageContentComponent implements OnDestroy, AfterViewInit{
}
ngOnDestroy() {
this.subscription.unsubscribe();
if(this.subscription) {
this.subscription.unsubscribe();
}
}
}

View File

@ -20,8 +20,8 @@
<div *ngIf="item.icon && !open" class="uk-margin-auto">
<span [innerHTML]="satinizeHTML(item.icon)"></span>
</div>
<div *ngIf="!item.icon && !open" class="uk-margin-auto"><i
class="material-icons">donut_large</i></div>
<!-- <div *ngIf="!item.icon && !open" class="uk-margin-auto"><i
class="material-icons">donut_large</i></div>-->
<span [class.uk-text-small]="!open">{{item.title}}</span>
</a>
<ng-template [ngIf]="item.items.length > 1">