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 171bfe0
Showing 1 changed file with 12 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,16 @@ export default {
item.value = !item.value;
}
},
itemText (item) {
console.log(item.key);

Check failure on line 274 in website/client/src/components/admin-panel/user-support/achievements.vue

View workflow job for this annotation

GitHub Actions / production-build (21.x)

Unexpected console statement

Check failure on line 274 in website/client/src/components/admin-panel/user-support/achievements.vue

View workflow job for this annotation

GitHub Actions / production-build (21.x)

Unexpected console statement
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 171bfe0

Please sign in to comment.