diff --git a/wallet-webapps/src/main/webapp/WEB-INF/gatein-resources.xml b/wallet-webapps/src/main/webapp/WEB-INF/gatein-resources.xml index 948147d88..ae7c22c48 100644 --- a/wallet-webapps/src/main/webapp/WEB-INF/gatein-resources.xml +++ b/wallet-webapps/src/main/webapp/WEB-INF/gatein-resources.xml @@ -401,6 +401,12 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. applicationToolbarComponent + + usersLeaderboardCommon + + + ruleExtensions + vue diff --git a/wallet-webapps/src/main/webapp/vue-app/wallet-reward/components/reward/RewardDetails.vue b/wallet-webapps/src/main/webapp/vue-app/wallet-reward/components/reward/RewardDetails.vue index c42aae1e1..9cdaa6b2f 100644 --- a/wallet-webapps/src/main/webapp/vue-app/wallet-reward/components/reward/RewardDetails.vue +++ b/wallet-webapps/src/main/webapp/vue-app/wallet-reward/components/reward/RewardDetails.vue @@ -103,9 +103,16 @@ :contract-details="contractDetails" :token-symbol="tokenSymbol" :completely-proceeded="completelyProceeded" - :transaction-ether-scan-link="transactionEtherScanLink" /> + :transaction-ether-scan-link="transactionEtherScanLink" + @open-contribution-details="openContributionDetails" /> + @@ -201,8 +208,17 @@ export default { completelyProceeded() { return this.rewardReport?.completelyProceeded; }, + endDateInSeconds() { + return this.period?.endDateInSeconds; + }, + startDateInSeconds() { + return this.period?.startDateInSeconds; + }, + rewardPeriodType() { + return this.period?.rewardPeriodType; + }, isNotPastPeriod() { - return !this.period || this.period.endDateInSeconds > this.currentTimeInSeconds; + return !this.period || this.endDateInSeconds > this.currentTimeInSeconds; }, walletRewards() { return (this.rewardReport && this.rewardReport.rewards) || []; @@ -295,6 +311,9 @@ export default { }); }); }, + openContributionDetails(userId) { + this.$refs?.profileStatsDrawer?.openByIdentityId(userId, this.rewardPeriodType); + } }, }; \ No newline at end of file diff --git a/wallet-webapps/src/main/webapp/vue-app/wallet-reward/components/reward/RewardDetailsItem.vue b/wallet-webapps/src/main/webapp/vue-app/wallet-reward/components/reward/RewardDetailsItem.vue index abd3adbdf..215d9b5d1 100644 --- a/wallet-webapps/src/main/webapp/vue-app/wallet-reward/components/reward/RewardDetailsItem.vue +++ b/wallet-webapps/src/main/webapp/vue-app/wallet-reward/components/reward/RewardDetailsItem.vue @@ -41,9 +41,9 @@ display-no-address /> - + {{ points }} - +