Skip to content

Commit

Permalink
Fix achievement display in admin panel
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipthelen committed Sep 18, 2024
1 parent f9fb463 commit c52e157
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{{ item.value }}
</span>
:
{{ item.text || item.key }}
{{ itemText(item) }}
</span>

<div
Expand Down Expand Up @@ -78,7 +78,7 @@
{{ item.value }}
</span>
:
{{ item.text || item.key }}
{{ itemText(item) }}
</span>

<div
Expand Down Expand Up @@ -270,6 +270,15 @@ export default {
item.value = !item.value;
}
},
itemText (item) {
if (item.key === 'npc') {
return this.$t('npcAchievementName', { key: this.hero.backer && this.hero.backer.npc });
}
if (item.key === 'kickstarter') {
return this.$t('kickstartName', { key: this.hero.backer && this.hero.backer.tier });
}
return item.text || item.key;
},
},
};
</script>

0 comments on commit c52e157

Please sign in to comment.