MOBILE-3267 more: Filter site name in more tab

main
Dani Palou 2020-01-13 13:00:37 +01:00
parent ad85ded49f
commit 2cd6ef5347
2 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,7 @@
<a ion-item core-user-link [userId]="siteInfo.userid" text-wrap> <a ion-item core-user-link [userId]="siteInfo.userid" text-wrap>
<ion-avatar core-user-avatar [user]="siteInfo" item-start></ion-avatar> <ion-avatar core-user-avatar [user]="siteInfo" item-start></ion-avatar>
<h2>{{siteInfo.fullname}}</h2> <h2>{{siteInfo.fullname}}</h2>
<ion-note>{{ siteName }}</ion-note> <ion-note><core-format-text [text]="siteName" contextLevel="system" [contextInstanceId]="0" [wsNotFiltered]="true"></core-format-text></ion-note>
<ion-note>{{ siteUrl }}</ion-note> <ion-note>{{ siteUrl }}</ion-note>
</a> </a>
<ion-item-divider></ion-item-divider> <ion-item-divider></ion-item-divider>

View File

@ -413,7 +413,8 @@ export class CoreFormatTextDirective implements OnChanges {
this.contextInstanceId = site.getSiteHomeId(); this.contextInstanceId = site.getSiteHomeId();
} }
this.filter = typeof this.filter == 'undefined' ? !!(this.contextLevel && this.contextInstanceId) : !!this.filter; this.filter = typeof this.filter == 'undefined' ?
!!(this.contextLevel && typeof this.contextInstanceId != 'undefined') : !!this.filter;
result.options = { result.options = {
clean: this.utils.isTrueOrOne(this.clean), clean: this.utils.isTrueOrOne(this.clean),