add delegate verification finish

This commit is contained in:
Eudes Inácio
2024-03-02 12:56:54 +01:00
parent 805825d3f5
commit 43ebfb381d
8 changed files with 18 additions and 8 deletions
@@ -19,7 +19,7 @@
<div class="flex-grow-1 width-50 pl-10">
<button *ngIf="p.userPermission([p.permissionList.Gabinete.md_tasks])" (click)="openExpedientActionsModal('1',fulltask)" class="btn-cancel" shape="round" >Solicitar Parecer</button>
<!-- <button *ngIf="!p.userRole(['PR'])" (click)="openExpedientActionsModal('2',fulltask)" class="btn-cancel" shape="round" >Pedido de Deferimento</button> -->
<button *ngIf="p.userPermission([p.permissionList.Gabinete.md_tasks])" (click)="openDelegarModal(task)" class="btn-cancel" shape="round" >Delegar</button>
<button *ngIf="p.userPermission([p.permissionList.Gabinete.md_tasks]) && !isDelegated" (click)="openDelegarModal(task)" class="btn-cancel" shape="round" >Delegar</button>
<button *ngIf="p.userPermission([p.permissionList.Gabinete.md_tasks]) && task.Status != 'Pending'" (click)="sendExpedienteToPending()" full class="btn-cancel" shape="round" >Enviar para Pendentes</button>
<button (click)="cancle()" full class="btn-cancel" shape="round" >Cancelar</button>
</div>
@@ -29,6 +29,7 @@ export class DespachosPrOptionsPage implements OnInit {
serialNumber: string;
profile: string
environment = environment
isDelegated: boolean;
constructor(private activateRoute: ActivatedRoute,
private processes: ProcessesService,
@@ -45,6 +46,8 @@ export class DespachosPrOptionsPage implements OnInit {
) { }
ngOnInit() {
console.log('is delegated', this.fulltask.isDelegated)
this.isDelegated = this.fulltask.isDelegated;
this.profile = "mdgpr";