Skip to content
Snippets Groups Projects
Commit 5900deb5 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FEAT #14383 TIME 0:10 dsplay customFields with technical mode

parent 4a469b02
No related branches found
No related tags found
No related merge requests found
...@@ -96,17 +96,17 @@ export class TechnicalInformationComponent implements OnInit { ...@@ -96,17 +96,17 @@ export class TechnicalInformationComponent implements OnInit {
type : info.type type : info.type
}; };
}); });
this.customsData = data.customFields.filter((item: { mode: any; }) => item.mode === 'technical');
}), }),
exhaustMap(() => this.http.get(`../rest/resources/${this.data.resId}`)), exhaustMap(() => this.http.get(`../rest/resources/${this.data.resId}`)),
tap((data: any) => { tap((data: any) => {
Object.keys(data.customFields).forEach(key => { Object.keys(this.customsData).forEach(key => {
if (this.customs[key]['mode'] === 'technical') { console.log(key);
this.customsData[key] = { this.customsData[key] = {
label: this.customs[key]['label'], label: this.customsData[key].label,
value: data.customFields[key], value: this.customsData[key].values,
icon: 'fas fa-hashtag' icon: 'fas fa-hashtag'
}; };
}
}); });
}), }),
catchError((err: any) => { catchError((err: any) => {
......
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