mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-14 12:01:06 +00:00
custom fields have been hidden in profile panel.
This commit is contained in:
parent
d8df2d6671
commit
c827a425ba
1 changed files with 10 additions and 1 deletions
|
|
@ -190,7 +190,16 @@ export default {
|
|||
arr.push(item);
|
||||
}
|
||||
}
|
||||
return arr;
|
||||
// remove fields that have custom names ( example: country: lol)
|
||||
return arr.filter(a => {
|
||||
if (a.key.toLowerCase() === "constants") {return;}
|
||||
const fieldName = this.surveyItems.constants[a.key.toLowerCase()];
|
||||
if (fieldName && !this.surveyItems[fieldName].find(f => f.name === a.name )) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
},
|
||||
filteredBadges() {
|
||||
if (!this.user.badges) return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue