diff --git a/src/app/modals/profile/profile.page.ts b/src/app/modals/profile/profile.page.ts index 634a59c3f..a5ea4a616 100644 --- a/src/app/modals/profile/profile.page.ts +++ b/src/app/modals/profile/profile.page.ts @@ -219,7 +219,7 @@ export class ProfilePage implements OnInit { logout() { SessionStore.setInativity(false) - + SessionStore.setUrlBeforeInactivity(this.router.url) setTimeout(() => { this.router.navigateByUrl('/', { replaceUrl: true }); }, 100) diff --git a/src/app/shared/agenda/edit-event/edit-event.page.html b/src/app/shared/agenda/edit-event/edit-event.page.html index 6056f6b6a..d3539b232 100644 --- a/src/app/shared/agenda/edit-event/edit-event.page.html +++ b/src/app/shared/agenda/edit-event/edit-event.page.html @@ -117,7 +117,7 @@ @@ -145,7 +145,7 @@ @@ -195,7 +195,7 @@ @@ -213,41 +213,7 @@ -
-
-
- -
-
- - {{recurring.Description}} - -
-
-
-
-
-
- -
-
- - - -
-
-
diff --git a/src/app/shared/agenda/edit-event/edit-event.page.ts b/src/app/shared/agenda/edit-event/edit-event.page.ts index f4c28947b..9e8ea4ffc 100644 --- a/src/app/shared/agenda/edit-event/edit-event.page.ts +++ b/src/app/shared/agenda/edit-event/edit-event.page.ts @@ -89,9 +89,6 @@ export class EditEventPage implements OnInit { { value: false, label: 'False' } ]; - get dateOccurrence () { - return this.dateControlOccurrence.value - } public listColors = ['primary', 'accent', 'warn']; public stepHours = [1, 2, 3, 4, 5]; public stepMinutes = [1, 5, 10, 15, 20, 25]; @@ -109,6 +106,7 @@ export class EditEventPage implements OnInit { ngOnInit() { this.dateControlOccurrence = new FormControl(moment(this.postEvent.EventRecurrence.LastOccurrence)); + this.postEvent.EventRecurrence.Type = '-1' if(!this.restoreTemporaryData()) { // clear @@ -208,13 +206,13 @@ export class EditEventPage implements OnInit { dateEnd: new FormControl(this.dateEnd, [ Validators.required ]), - dateOccurrence: new FormControl(this.dateOccurrence, [ + dateOccurrence: new FormControl(this.postEvent.EventRecurrence.Type, [ Validators.required ]), participantes: new FormControl(this.taskParticipants, [ // Validators.required ]), - Date: new FormControl( new Date(this.dateControlStart.value).toLocaleString() < new Date(this.dateControlEnd.value).toLocaleString()? 'ok': null,[ + Date: new FormControl( new Date(this.dateControlStart.value).toLocaleString('pt') < new Date(this.dateControlEnd.value).toLocaleString('pt')? 'ok': null,[ Validators.required ]), @@ -364,7 +362,6 @@ export class EditEventPage implements OnInit { if (this.postEvent) { this.postEvent.StartDate = this.dateStart this.postEvent.EndDate = this.dateEnd - this.postEvent.EventRecurrence.LastOccurrence = this.dateOccurrence } }