mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
Improve
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user