@@ -54,7 +54,7 @@ export class NotificationService {
if (err.error!==undefined){
if (err.error.errors!==undefined){
if (err.error.lang!==undefined){
this.error('lang.'+err.error.lang,err.url);
this.error(this.lang[err.error.lang]);
}elseif (err.error.errors=='Document out of perimeter'||err.error.errors=='Resource out of perimeter'||err.error.errors=='Resources out of perimeter'){
this.error(this.lang.documentOutOfPerimeter);
}else{
...
...
@@ -80,7 +80,9 @@ export class NotificationService {
console.log(err);
if (err.error!==undefined){
if (err.error.errors!==undefined){
if (err.error.errors=='Document out of perimeter'||err.error.errors=='Resource out of perimeter'||err.error.errors=='Resources out of perimeter'){
if (err.error.lang!==undefined){
this.error(this.lang[err.error.lang]);
}elseif (err.error.errors=='Document out of perimeter'||err.error.errors=='Resource out of perimeter'||err.error.errors=='Resources out of perimeter'){