MOBILE-3335 wiki: Display subwiki buttons group type
parent
bc97553259
commit
f27bd969d1
|
@ -2,7 +2,8 @@
|
|||
<core-navbar-buttons end>
|
||||
<!-- Select subwiki. -->
|
||||
<button ion-button icon-only *ngIf="subwikiData.count > 1" (click)="showSubwikiPicker($event)" [attr.aria-label]="'addon.mod_wiki.subwiki' | translate">
|
||||
<ion-icon name="person"></ion-icon>
|
||||
<ion-icon *ngIf="!groupWiki" name="person"></ion-icon>
|
||||
<ion-icon *ngIf="groupWiki" name="people"></ion-icon>
|
||||
</button>
|
||||
|
||||
<button *ngIf="loaded && currentPageObj" ion-button icon-only (click)="openMap($event)"[attr.aria-label]="'addon.mod_wiki.map' | translate" aria-haspopup="true">
|
||||
|
|
|
@ -44,6 +44,7 @@ export class AddonModWikiIndexComponent extends CoreCourseModuleMainActivityComp
|
|||
component = AddonModWikiProvider.COMPONENT;
|
||||
componentId: number;
|
||||
moduleName = 'wiki';
|
||||
groupWiki = false;
|
||||
|
||||
wiki: any; // The wiki instance.
|
||||
isMainPage: boolean; // Whether the user is viewing wiki's main page (just entered the wiki).
|
||||
|
@ -907,6 +908,8 @@ export class AddonModWikiIndexComponent extends CoreCourseModuleMainActivityComp
|
|||
return a.groupid - b.groupid;
|
||||
});
|
||||
|
||||
this.groupWiki = showMyGroupsLabel;
|
||||
|
||||
this.subwikiData.count = subwikiList.length;
|
||||
|
||||
// If no subwiki is received as view param, select always the most appropiate.
|
||||
|
|
Loading…
Reference in New Issue