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 {
type : info.type
};
});
this.customsData = data.customFields.filter((item: { mode: any; }) => item.mode === 'technical');
}),
exhaustMap(() => this.http.get(`../rest/resources/${this.data.resId}`)),
tap((data: any) => {
Object.keys(data.customFields).forEach(key => {
if (this.customs[key]['mode'] === 'technical') {
Object.keys(this.customsData).forEach(key => {
console.log(key);
this.customsData[key] = {
label: this.customs[key]['label'],
value: data.customFields[key],
label: this.customsData[key].label,
value: this.customsData[key].values,
icon: 'fas fa-hashtag'
};
}
});
}),
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