mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
notification click, calendar input
This commit is contained in:
@@ -516,6 +516,8 @@ export class EditEventToApprovePage implements OnInit {
|
||||
|
||||
if (this.eventProcess['activityInstanceName'] == 'Editar Evento') {
|
||||
this.reenviar();
|
||||
} else {
|
||||
this.toastService._badRequest('Pedimos desculpa mas não foi possível executar a acção. Por favor, contacte o apoio técnico. #this.eventProcess["activityInstanceName"] == "Editar Evento"')
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -294,29 +294,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- <div class="container-div d-flex">
|
||||
<div class="ion-item-class-2 width-100 d-flex">
|
||||
<div class="ion-icon-class">
|
||||
<ion-icon slot="start" src="assets/images/icons-refresh.svg"></ion-icon>
|
||||
</div>
|
||||
<div class="ion-input-class flex-grow-1">
|
||||
|
||||
<mat-form-field appearance="none" floatLabel="never" class="width-100" value="false" interface="action-sheet" required>
|
||||
<mat-select
|
||||
placeholder="Selecione repetição*"
|
||||
[(ngModel)]="_postEvent.EventRecurrence.Type"
|
||||
(ngModelChange)="onSelectedRecurringChanged($event)">
|
||||
<mat-option
|
||||
*ngFor="let recurring of recurringTypes"
|
||||
value="{{recurring.Code}}">
|
||||
{{recurring.Description}}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<div *ngIf="_postEvent.EventRecurrence.Type != '-1'" class="container-div width-100">
|
||||
<div class="ion-item-class-2 d-flex">
|
||||
|
||||
@@ -39,7 +39,6 @@ export class EditEventPage implements OnInit {
|
||||
eventAttendees: EventPerson[];
|
||||
// minDate: string;
|
||||
loadedEventAttachments: any[] = [];
|
||||
recurringTypes = [];
|
||||
selectedRecurringType: any;
|
||||
deletedAttachmentsList = [];
|
||||
|
||||
@@ -105,6 +104,8 @@ export class EditEventPage implements OnInit {
|
||||
selectedUserCalendar:any;
|
||||
CalendarNamesOptions = ['Oficial', 'Pessoal']
|
||||
|
||||
dateDifference = 0
|
||||
|
||||
constructor(
|
||||
private modalController: ModalController,
|
||||
private eventsService: EventsService,
|
||||
@@ -186,7 +187,6 @@ export class EditEventPage implements OnInit {
|
||||
|
||||
this.initCalendarName = this._postEvent.CalendarName;
|
||||
|
||||
this.getRecurrenceTypes();
|
||||
|
||||
setTimeout(() => {
|
||||
this._postEvent.EventRecurrence.Type = this._postEvent.EventRecurrence.Type.toString();
|
||||
@@ -197,8 +197,6 @@ export class EditEventPage implements OnInit {
|
||||
this.CalendarNameOwnerName = this.eventsService.detectCalendarNameByCalendarId(this._postEvent.CalendarId)
|
||||
this.changeAgenda()
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -227,12 +225,6 @@ export class EditEventPage implements OnInit {
|
||||
this.deleteTemporaryData();
|
||||
}
|
||||
|
||||
getRecurrenceTypes() {
|
||||
this.eventsService.getRecurrenceTypes().subscribe(res => {
|
||||
|
||||
this.recurringTypes = res;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
runValidation() {
|
||||
@@ -375,7 +367,8 @@ export class EditEventPage implements OnInit {
|
||||
}
|
||||
|
||||
validationEditAllEvent() {
|
||||
if (this.postEvent.IsRecurring) {
|
||||
|
||||
if (this.postEvent.IsRecurring && this._postEvent.EventRecurrence.frequency != 'never') {
|
||||
this.alertController.create({
|
||||
header: 'Editar evento?',
|
||||
message: 'Este evento tem recorrência, deseja editar a Sequência de eventos?',
|
||||
|
||||
Reference in New Issue
Block a user