mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
All changes i made
This commit is contained in:
@@ -14,6 +14,7 @@ import { FormControl, FormGroup, Validators } from '@angular/forms';
|
||||
import { ParticipantsPipe } from 'src/app/pipes/participants.pipe';
|
||||
import { ThemeService } from 'src/app/services/theme.service'
|
||||
import { SessionStore } from 'src/app/store/session.service';
|
||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-edit-event',
|
||||
@@ -92,7 +93,8 @@ export class EditEventPage implements OnInit {
|
||||
public alertController: AlertController,
|
||||
private attachmentsService: AttachmentsService,
|
||||
private toastService: ToastService,
|
||||
public ThemeService: ThemeService
|
||||
public ThemeService: ThemeService,
|
||||
private httpErrorHandle: HttpErrorHandle
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -332,7 +334,7 @@ export class EditEventPage implements OnInit {
|
||||
} catch (e) {}
|
||||
}
|
||||
this.showLoader = false;
|
||||
this.toastService.successMessage()
|
||||
this.httpErrorHandle.httpsSucessMessagge('Editar evento')
|
||||
} else {
|
||||
await this.eventsService.editEvent(this.postEvent, 2, 3, this.postEvent.CalendarId).toPromise()
|
||||
if(this.initCalendarName != this.postEvent.CalendarName) {
|
||||
@@ -346,13 +348,13 @@ export class EditEventPage implements OnInit {
|
||||
} catch (e) {}
|
||||
}
|
||||
this.showLoader = false;
|
||||
this.toastService.successMessage()
|
||||
this.httpErrorHandle.httpsSucessMessagge('Editar evento')
|
||||
}
|
||||
|
||||
|
||||
} catch(error) {
|
||||
this.showLoader = false
|
||||
this.toastService.badRequest()
|
||||
this.httpErrorHandle.httpStatusHandle(error)
|
||||
}
|
||||
|
||||
this.clearPostEvent.emit();
|
||||
|
||||
Reference in New Issue
Block a user