Skip to content

Commit

Permalink
reallocations amount render
Browse files Browse the repository at this point in the history
  • Loading branch information
magiodev committed May 12, 2024
1 parent 5498ba2 commit d95390e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion frontend-ms/src/components/Game/PotsComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<div class="pots-component position-relative">
<div class="row justify-content-center">
<PotItemComponent :pot="pot" v-for="pot in pots" :key="pot.id" @endReallocation="onReallocateTokens"/>

<div v-if="userAddress" class=" mt-3">
<p class="text-center">You have reallocated funds {{playerReallocations}} out of the {{gameConfig.reallocations_limit}} times allowed.</p>
</div>
</div>
</div>
</template>
Expand All @@ -21,7 +25,7 @@ export default {
components: {PotItemComponent},
computed: {
...mapGetters(['pots']),
...mapGetters(['pots', "playerReallocations", "userAddress", "gameConfig"]),
},
methods: {
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/components/Game/PotsComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<div class="pots-component position-relative">
<div class="row justify-content-center">
<PotItemComponent :pot="pot" v-for="pot in pots" :key="pot.id" @endReallocation="onReallocateTokens"/>

<div v-if="userAddress" class=" mt-3">
<p class="text-center">You have reallocated funds {{playerReallocations}} out of the {{gameConfig.reallocations_limit}} times allowed.</p>
</div>
</div>
</div>
</template>
Expand All @@ -21,7 +25,7 @@ export default {
components: {PotItemComponent},
computed: {
...mapGetters(['pots']),
...mapGetters(['pots', "playerReallocations", "userAddress", "gameConfig"]),
},
methods: {
Expand Down

0 comments on commit d95390e

Please sign in to comment.