mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
bugs solved
This commit is contained in:
@@ -102,13 +102,13 @@
|
||||
<mat-form-field appearance="none" class="width-100" placeholder="Sample Type" required>
|
||||
<!-- <input matInput type="text" > -->
|
||||
<mat-select [(value)]="postEvent.Category" >
|
||||
<mat-option value="Reunião">
|
||||
<mat-option value="Meeting">
|
||||
Reunião
|
||||
</mat-option>
|
||||
<mat-option value="Viagem">
|
||||
<mat-option value="Travel">
|
||||
Viagem
|
||||
</mat-option>
|
||||
<mat-option value="Conferência">
|
||||
<mat-option value="Conference">
|
||||
Conferência
|
||||
</mat-option>
|
||||
<mat-option value="Encontro">
|
||||
|
||||
@@ -207,7 +207,6 @@ export class NewEventPage implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
console.log(' INTERVENIENTES', this.taskParticipants)
|
||||
this.changeProfileService.registerCallback(() => {
|
||||
this.initializeData()
|
||||
@@ -278,7 +277,7 @@ export class NewEventPage implements OnInit {
|
||||
Category: 'Reunião',
|
||||
HasAttachments: false,
|
||||
EventRecurrence: {
|
||||
frequency: this.eventRecurence, until: this.autoEndTime,
|
||||
frequency: this.eventRecurence, until: "",
|
||||
Type: ''
|
||||
},
|
||||
};
|
||||
@@ -302,7 +301,7 @@ export class NewEventPage implements OnInit {
|
||||
Organizer: '',
|
||||
Category: 'Reunião',
|
||||
HasAttachments: false,
|
||||
EventRecurrence: { frequency: this.eventRecurence, until: this.autoEndTime,
|
||||
EventRecurrence: { frequency: this.eventRecurence, until: "",
|
||||
Type: '' },
|
||||
}
|
||||
}
|
||||
@@ -595,6 +594,7 @@ export class NewEventPage implements OnInit {
|
||||
}, ((error) => {
|
||||
console.log('create event error: ', error)
|
||||
loader.remove();
|
||||
this.hhtpErrorHandle.httpStatusHandle(error.status)
|
||||
}));
|
||||
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ export class ViewEventPage implements OnInit {
|
||||
}
|
||||
|
||||
toDateString(e) {
|
||||
return new Date(e).toDateString()
|
||||
return new Date(e).toString()
|
||||
}
|
||||
|
||||
openOptions() {
|
||||
@@ -140,19 +140,54 @@ export class ViewEventPage implements OnInit {
|
||||
this.viewEventDetailDismiss.emit({
|
||||
type: 'close'
|
||||
})
|
||||
console.log(res.error)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
deleteYesOrNo() {
|
||||
this.alertController.create({
|
||||
if (this.loadedEvent.IsRecurring) {
|
||||
this.alertController.create({
|
||||
header: 'Eliminar evento?',
|
||||
message: '',
|
||||
inputs: [
|
||||
{
|
||||
name: 'confirm',
|
||||
type: 'checkbox',
|
||||
label: 'Este evento tem recorrência, deseja eliminar a Sequência de eventos?',
|
||||
value: 'confirm',
|
||||
checked: false,
|
||||
}
|
||||
],
|
||||
buttons: [
|
||||
{
|
||||
text: 'Sim',
|
||||
handler: (data) => {
|
||||
if (data.includes('confirm')) {
|
||||
this.deleteEvent_v2(true);
|
||||
} else {
|
||||
this.deleteEvent_v2(false);
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
text: 'Não',
|
||||
handler: () => {
|
||||
}
|
||||
}
|
||||
]
|
||||
}).then(res => {
|
||||
res.present();
|
||||
});
|
||||
} else {
|
||||
this.alertController.create({
|
||||
header: 'Eliminar evento?',
|
||||
message: '',
|
||||
buttons: [
|
||||
{
|
||||
text: 'Sim',
|
||||
handler: () => {
|
||||
this.deleteEvent_v2();
|
||||
this.deleteEvent_v2(false);
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -164,12 +199,14 @@ export class ViewEventPage implements OnInit {
|
||||
}).then(res => {
|
||||
res.present();
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
deleteEvent_v2() {
|
||||
deleteEvent_v2(deleteAll) {
|
||||
console.log(this.loadedEvent.EventId)
|
||||
const loader = this.toastService.loading()
|
||||
this.agendaDataRepository.deleteEvent(this.loadedEvent.EventId).subscribe(() => {
|
||||
this.agendaDataRepository.deleteEvent(this.loadedEvent.EventId,deleteAll).subscribe(() => {
|
||||
console.log()
|
||||
this.httpErrorHandle.httpsSucessMessagge('delete event')
|
||||
this.close();
|
||||
|
||||
Reference in New Issue
Block a user