MOBILE-3936 reminders: Fix workshop reminders and custom position
parent
0788664be6
commit
e7e0ea6b04
|
@ -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">
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue