diff --git a/force-app/main/default/lwc/achievementListItem/achievementListItem.html b/force-app/main/default/lwc/achievementListItem/achievementListItem.html index 29d1bd4..b7006b2 100644 --- a/force-app/main/default/lwc/achievementListItem/achievementListItem.html +++ b/force-app/main/default/lwc/achievementListItem/achievementListItem.html @@ -12,5 +12,8 @@ +
+ +
\ No newline at end of file diff --git a/force-app/main/default/lwc/achievementListItem/achievementListItem.js b/force-app/main/default/lwc/achievementListItem/achievementListItem.js index c35429b..464a8c2 100644 --- a/force-app/main/default/lwc/achievementListItem/achievementListItem.js +++ b/force-app/main/default/lwc/achievementListItem/achievementListItem.js @@ -2,4 +2,12 @@ import { LightningElement, api } from 'lwc'; export default class AchievementListItem extends LightningElement { @api achievement + + get badgeScore() { + return "+ " + this.achievement.score + } + + get badgeStyle() { + return this.achievement.isReached ? "slds-theme_success" : "" + } } \ No newline at end of file