MOBILE-2652 glossary: Fix tablet navigation

main
Noel De Martin 2023-05-24 12:28:11 +02:00
parent 157979e25e
commit 33547fd498
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@
<h2 class="big">{{ 'addon.mod_glossary.entriestobesynced' | translate }}</h2> <h2 class="big">{{ 'addon.mod_glossary.entriestobesynced' | translate }}</h2>
</ion-label> </ion-label>
</ion-item-divider> </ion-item-divider>
<ion-item *ngFor="let entry of entries.offlineEntries" (click)="entries.select(entry)" button <ion-item *ngFor="let entry of entries.offlineEntries" (click)="entries.select(entry)" button detail="false"
[attr.aria-current]="entries.getItemAriaCurrent(entry)"> [attr.aria-current]="entries.getItemAriaCurrent(entry)">
<ion-label> <ion-label>
<div class="addon-mod-glossary-index--offline-entry"> <div class="addon-mod-glossary-index--offline-entry">
@ -58,7 +58,7 @@
</ion-label> </ion-label>
</ion-item-divider> </ion-item-divider>
<ion-item button (click)="entries.select(entry)" [attr.aria-current]="entries.getItemAriaCurrent(entry)"> <ion-item button (click)="entries.select(entry)" [attr.aria-current]="entries.getItemAriaCurrent(entry)" detail="false">
<ion-label> <ion-label>
<core-format-text [text]="entry.concept" contextLevel="module" [contextInstanceId]="glossary!.coursemodule" <core-format-text [text]="entry.concept" contextLevel="module" [contextInstanceId]="glossary!.coursemodule"
[courseId]="courseId"> [courseId]="courseId">

View File

@ -197,7 +197,7 @@ export class AddonModGlossaryEntryPage implements OnInit, OnDestroy {
CoreDomUtils.showToast('addon.mod_glossary.entrydeleted', true, ToastDuration.LONG); CoreDomUtils.showToast('addon.mod_glossary.entrydeleted', true, ToastDuration.LONG);
if (this.splitView?.outletActivated) { if (this.splitView?.outletActivated) {
await CoreNavigator.navigate('../'); await CoreNavigator.navigate('../../');
} else { } else {
await CoreNavigator.back(); await CoreNavigator.back();
} }