MOBILE-3936 reminders: Fix workshop reminders and custom position

main
Pau Ferrer Ocaña 2022-11-22 14:18:26 +01:00
parent 0788664be6
commit e7e0ea6b04
2 changed files with 5 additions and 2 deletions

View File

@ -9,7 +9,8 @@
<core-loading [hideUntil]="!showLoading"> <core-loading [hideUntil]="!showLoading">
<!-- Activity info. --> <!-- Activity info. -->
<core-course-module-info [module]="module" [hasDataToSync]="hasOffline" (completionChanged)="onCompletionChange()"> <core-course-module-info [module]="module" [component]="component" [componentId]="componentId" [courseId]="courseId"
[hasDataToSync]="hasOffline" (completionChanged)="onCompletionChange()">
</core-course-module-info> </core-course-module-info>
<ion-card *ngIf="phases"> <ion-card *ngIf="phases">

View File

@ -152,6 +152,9 @@ export class CoreRemindersSetReminderMenuComponent implements OnInit {
* @param ev Click event. * @param ev Click event.
*/ */
async setCustom(ev: Event): Promise<void> { async setCustom(ev: Event): Promise<void> {
ev.stopPropagation();
ev.preventDefault();
const reminderTime = await CoreDomUtils.openPopover<CoreReminderValueAndUnit>({ const reminderTime = await CoreDomUtils.openPopover<CoreReminderValueAndUnit>({
component: CoreRemindersSetReminderCustomComponent, component: CoreRemindersSetReminderCustomComponent,
componentProps: { componentProps: {
@ -159,7 +162,6 @@ export class CoreRemindersSetReminderMenuComponent implements OnInit {
customUnits: this.customUnits, customUnits: this.customUnits,
}, },
waitForDismissCompleted: true, // To be able to close parent popup. waitForDismissCompleted: true, // To be able to close parent popup.
event: ev,
}); });
if (reminderTime === undefined) { if (reminderTime === undefined) {