This commit is contained in:
Peter Maquiran
2021-07-26 15:19:03 +01:00
parent 3f007be25e
commit 85f6df2f0e
16 changed files with 852 additions and 197 deletions
@@ -18,7 +18,7 @@ import { ToastService } from 'src/app/services/toast.service';
export class ApproveEventPage implements OnInit {
event: Event;
loadedEvent:any;
@Input() loadedEvent:any;
loadedAttachments:any;
customDate:any;
today:any;
@@ -28,6 +28,8 @@ export class ApproveEventPage implements OnInit {
days = ["Domingo", "Segunda-feira", "Terça-feira", "Quarta-feira", "Quinta-feira", "Sexta-feira", "Sábado"];
@Input() serialNumber:string;
@Input() showComponent:string;
@Input() componentTransparent: any
@Input() InstanceId:string;
@Input() showAside:boolean;
@@ -58,7 +60,11 @@ export class ApproveEventPage implements OnInit {
ngOnInit() {
this.getTask();
this.getAttachments();
}
ngOnChanges() {
this.getTask();
this.getAttachments();
}
notImplemented() {
@@ -94,6 +100,7 @@ export class ApproveEventPage implements OnInit {
} catch (error) {
this.toastService.badRequest()
} finally {
this.close()
loader.remove()
}
@@ -121,8 +128,9 @@ export class ApproveEventPage implements OnInit {
this.toastService.successMessage('Evento rejeitado')
} catch (error) {
this.toastService.badRequest('Processo não efectuado')
} finally {
} finally {
loader.remove()
this.close()
}
}