MOBILE-2856 data: Go to first page when changing group
parent
cd77fb2f4e
commit
b810862fca
|
@ -395,6 +395,7 @@ export class AddonModDataIndexComponent extends CoreCourseModuleMainActivityComp
|
||||||
*/
|
*/
|
||||||
setGroup(groupId: number): Promise<any> {
|
setGroup(groupId: number): Promise<any> {
|
||||||
this.selectedGroup = groupId;
|
this.selectedGroup = groupId;
|
||||||
|
this.search.page = 0;
|
||||||
|
|
||||||
return this.fetchEntriesData().catch((message) => {
|
return this.fetchEntriesData().catch((message) => {
|
||||||
this.domUtils.showErrorModalDefault(message, 'core.course.errorgetmodule', true);
|
this.domUtils.showErrorModalDefault(message, 'core.course.errorgetmodule', true);
|
||||||
|
|
Loading…
Reference in New Issue