From d27e55a4f912df01a8eda3fd4667fcd197b35e81 Mon Sep 17 00:00:00 2001 From: "hamza.hramchi" <hamza.hramchi@xelians.fr> Date: Mon, 26 Oct 2020 12:12:00 +0100 Subject: [PATCH] FEAT #15057 TIME 0:01 change resourceBinded by value --- src/frontend/app/process/process.component.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontend/app/process/process.component.ts b/src/frontend/app/process/process.component.ts index 391953f5432..b80c4718f7e 100755 --- a/src/frontend/app/process/process.component.ts +++ b/src/frontend/app/process/process.component.ts @@ -861,12 +861,11 @@ export class ProcessComponent implements OnInit, OnDestroy { this.resourceBinded = value; this.http.put('../rest/archival/binding', { resources: [this.currentResourceInformations.resId], binding : value }).pipe( tap(() => { - if (this.resourceBinded) { + if (value) { this.notify.success(this.translate.instant('lang.bindingMail')); } else if (value === false) { this.notify.success(this.translate.instant('lang.noBindingMal')); - } - else { + } else { this.notify.success(this.translate.instant('lang.bindingUndefined')); } -- GitLab