diff --git a/src/frontend/app/process/process.component.ts b/src/frontend/app/process/process.component.ts index 391953f5432f0c356a1f64de713625a612b0ce95..b80c4718f7e97ee43458afa292220128f60ff4ae 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')); }