|
|
|
|
@ -381,12 +381,12 @@ export class WorklistMainIcComponent implements OnInit {
|
|
|
|
|
this.common.sharedService.setSharedData(this.notificationButtonRes, "passActionMore");
|
|
|
|
|
// console.log("test" + this.notificationButtonRes.length);
|
|
|
|
|
for (let i = 0; i < this.notificationButtonRes.length; i++) {
|
|
|
|
|
if (this.notificationButtonRes[i].BUTTON_ACTION == "APPROVE") {
|
|
|
|
|
if (this.notificationButtonRes[i].BUTTON_ACTION == "APPROVE" || this.notificationButtonRes[i].BUTTON_ACTION == "APPROVED") {
|
|
|
|
|
this.approve_label = this.notificationButtonRes[i].BUTTON_LABEL;
|
|
|
|
|
|
|
|
|
|
this.approveDis = true;
|
|
|
|
|
} else
|
|
|
|
|
if (this.notificationButtonRes[i].BUTTON_ACTION == "REJECT") {
|
|
|
|
|
if (this.notificationButtonRes[i].BUTTON_ACTION == "REJECT" || this.notificationButtonRes[i].BUTTON_ACTION == "REJECTED") {
|
|
|
|
|
this.reject_label = this.notificationButtonRes[i].BUTTON_LABEL;
|
|
|
|
|
this.rejectDis = true;
|
|
|
|
|
} else
|
|
|
|
|
@ -401,7 +401,7 @@ export class WorklistMainIcComponent implements OnInit {
|
|
|
|
|
this.closeDis = true;
|
|
|
|
|
}
|
|
|
|
|
else if (
|
|
|
|
|
this.notificationButtonRes[i].BUTTON_ACTION != "APPROVE" && this.notificationButtonRes[i].BUTTON_ACTION != "REJECT" && this.notificationButtonRes[i].BUTTON_ACTION != "REQUEST_INFO" && this.notificationButtonRes[i].BUTTON_ACTION != "CLOSE") {
|
|
|
|
|
this.notificationButtonRes[i].BUTTON_ACTION != "APPROVE" && this.notificationButtonRes[i].BUTTON_ACTION != "REJECT" && this.notificationButtonRes[i].BUTTON_ACTION != "REQUEST_INFO" && this.notificationButtonRes[i].BUTTON_ACTION != "CLOSE" && this.notificationButtonRes[i].BUTTON_ACTION != "REJECTED" && this.notificationButtonRes[i].BUTTON_ACTION != "APPROVED") {
|
|
|
|
|
this.moreDisabled = false;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|