Skip to content

Commit b35eabc

Browse files
authored
Merge pull request #2240 from dpalou/MOBILE-3267
MOBILE-3267 more: Filter site name in more tab
2 parents 4fe867a + 2cd6ef5 commit b35eabc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/core/mainmenu/pages/more/more.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a ion-item core-user-link [userId]="siteInfo.userid" text-wrap>
99
<ion-avatar core-user-avatar [user]="siteInfo" item-start></ion-avatar>
1010
<h2>{{siteInfo.fullname}}</h2>
11-
<ion-note>{{ siteName }}</ion-note>
11+
<ion-note><core-format-text [text]="siteName" contextLevel="system" [contextInstanceId]="0" [wsNotFiltered]="true"></core-format-text></ion-note>
1212
<ion-note>{{ siteUrl }}</ion-note>
1313
</a>
1414
<ion-item-divider></ion-item-divider>

src/directives/format-text.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,8 @@ export class CoreFormatTextDirective implements OnChanges {
413413
this.contextInstanceId = site.getSiteHomeId();
414414
}
415415

416-
this.filter = typeof this.filter == 'undefined' ? !!(this.contextLevel && this.contextInstanceId) : !!this.filter;
416+
this.filter = typeof this.filter == 'undefined' ?
417+
!!(this.contextLevel && typeof this.contextInstanceId != 'undefined') : !!this.filter;
417418

418419
result.options = {
419420
clean: this.utils.isTrueOrOne(this.clean),

0 commit comments

Comments
 (0)