Skip to content
Snippets Groups Projects
Commit 2da65f42 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #15049 TIME 0:10 fix msg

parent 3a91cdb8
No related branches found
No related tags found
No related merge requests found
......@@ -127,7 +127,7 @@
</mat-tab-group>
</ng-container>
<div *ngIf="resourcesErrors.length > 0" class="alert-message alert-message-danger">
{{'lang.' + resourcesErrors[0].lang | translate}}
{{resourcesErrors[0]}}
</div>
</div>
<span class="divider-modal"></span>
......
......@@ -5,6 +5,7 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { TranslateService } from '@ngx-translate/core';
import { FunctionsService } from '@service/functions.service';
import { NotificationService } from '@service/notification/notification.service';
import { error } from 'jquery';
import { of } from 'rxjs';
import { catchError, finalize, tap } from 'rxjs/operators';
......@@ -129,7 +130,11 @@ export class SendToRecordManagementComponent implements OnInit {
}),
finalize(() => this.checking = false),
catchError((err: any) => {
this.resourcesErrors.push(err.error);
if (!this.functions.empty(err.error.lang)) {
this.resourcesErrors.push(this.translate.instant('lang.' + err.error.lang));
} else {
this.resourcesErrors.push(err.error.errors);
}
// this.notify.handleErrors(err);
return of(false);
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment