mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-24 09:01:43 +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);
|
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() {
|
filteredBadges() {
|
||||||
if (!this.user.badges) return;
|
if (!this.user.badges) return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue