Skip to content

Commit f27bd96

Browse files
committed
MOBILE-3335 wiki: Display subwiki buttons group type
1 parent bc97553 commit f27bd96

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/addon/mod/wiki/components/index/addon-mod-wiki-index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<core-navbar-buttons end>
33
<!-- Select subwiki. -->
44
<button ion-button icon-only *ngIf="subwikiData.count > 1" (click)="showSubwikiPicker($event)" [attr.aria-label]="'addon.mod_wiki.subwiki' | translate">
5-
<ion-icon name="person"></ion-icon>
5+
<ion-icon *ngIf="!groupWiki" name="person"></ion-icon>
6+
<ion-icon *ngIf="groupWiki" name="people"></ion-icon>
67
</button>
78

89
<button *ngIf="loaded && currentPageObj" ion-button icon-only (click)="openMap($event)"[attr.aria-label]="'addon.mod_wiki.map' | translate" aria-haspopup="true">

src/addon/mod/wiki/components/index/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export class AddonModWikiIndexComponent extends CoreCourseModuleMainActivityComp
4444
component = AddonModWikiProvider.COMPONENT;
4545
componentId: number;
4646
moduleName = 'wiki';
47+
groupWiki = false;
4748

4849
wiki: any; // The wiki instance.
4950
isMainPage: boolean; // Whether the user is viewing wiki's main page (just entered the wiki).
@@ -907,6 +908,8 @@ export class AddonModWikiIndexComponent extends CoreCourseModuleMainActivityComp
907908
return a.groupid - b.groupid;
908909
});
909910

911+
this.groupWiki = showMyGroupsLabel;
912+
910913
this.subwikiData.count = subwikiList.length;
911914

912915
// If no subwiki is received as view param, select always the most appropiate.

0 commit comments

Comments
 (0)