File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/addon/mod/wiki/components/index Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 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 ">
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments