Skip to content

Commit

Permalink
Tooltip explaining that pending rewards for denied subgraphs are in f…
Browse files Browse the repository at this point in the history
…act denied
  • Loading branch information
vincenttaglia committed Mar 13, 2024
1 parent f2249f7 commit f196d2b
Showing 1 changed file with 35 additions and 6 deletions.
41 changes: 35 additions & 6 deletions src/views/AllocationsDashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,26 @@
color="purple"
v-if="item.pendingRewards.loading && !item.pendingRewards.loaded"
></v-progress-circular>
<span
v-if="!item.pendingRewards.loading && item.pendingRewards.loaded"
>
<div
v-if="!item.pendingRewards.loading && item.pendingRewards.loaded"
class="d-flex"
>
<span>
{{ numeral(Web3.utils.fromWei(Web3.utils.toBN(item.pendingRewards.value))).format('0,0') }} GRT
</span>
<v-tooltip
location="top"
v-if="item.subgraphDeployment.deniedAt"
>
<template v-slot:activator="{ props }">
<v-icon v-bind="props" size="12" class="mb-2 mr-3">
mdi-information
</v-icon>
</template>
<span>Rewards Denied for Subgraph</span>
</v-tooltip>
</div>

</template>
<template v-slot:item.pendingRewardsCut="{ item }">
<span
Expand All @@ -201,11 +216,25 @@
color="purple"
v-if="item.pendingRewards.loading && !item.pendingRewards.loaded"
></v-progress-circular>
<span
v-if="!item.pendingRewards.loading && item.pendingRewards.loaded"
<div
v-if="!item.pendingRewards.loading && item.pendingRewards.loaded"
class="d-flex"
>
{{ numeral(Web3.utils.fromWei(Web3.utils.toBN(item.pendingRewardsCut))).format('0,0') }} GRT
<span>
{{ numeral(Web3.utils.fromWei(Web3.utils.toBN(item.pendingRewardsCut))).format('0,0') }} GRT
</span>
<v-tooltip
location="top"
v-if="item.subgraphDeployment.deniedAt"
>
<template v-slot:activator="{ props }">
<v-icon v-bind="props" size="12" class="mb-2 mr-3">
mdi-information
</v-icon>
</template>
<span>Rewards Denied for Subgraph</span>
</v-tooltip>
</div>
</template>
<template v-slot:body.append>
<tr>
Expand Down

0 comments on commit f196d2b

Please sign in to comment.