MOBILE-3320 folder: Fix display subfolder name as title

main
Dani Palou 2021-06-09 08:22:17 +02:00
parent 9a7219a7db
commit 365bd02fb5
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@ export class AddonModFolderIndexPage extends CoreCourseModuleMainActivityPage<Ad
super.ngOnInit();
this.folderInstance = CoreNavigator.getRouteParam<AddonModFolderFolder>('folderInstance');
this.subfolder = CoreNavigator.getRouteParam<AddonModFolderFolderFormattedData>('subfolder');
this.title = this.subfolder?.filename || this.module.name;
}
}