Skip to content

Commit

Permalink
Merge pull request #2904 from threefoldtech/dev_make_node_rate_hourly
Browse files Browse the repository at this point in the history
Make node price rate hourly
  • Loading branch information
amiraabouhadid authored Jun 6, 2024
2 parents 7b48827 + c04a6d8 commit ad30945
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,20 +194,14 @@
</VRow>
<div class="mt-5 ml-auto text-right">
<v-tooltip bottom color="primary" close-delay="100" :disabled="!(node && node.dedicated)">
<template v-slot:activator="{ isActive, props }" v-if="node && node.dedicated">
<span v-bind="props" v-on="isActive" class="font-weight-bold"
><v-icon class="scale_beat mr-2" color="warning">mdi-brightness-percent</v-icon
>{{ (price_usd! / 24 / 30).toFixed(2) }} USD/Hour</span
>
</template>

<template v-slot:activator="{ isActive, props }" v-else>
<template v-slot:activator="{ isActive, props }">
<span v-bind="props" v-on="isActive" class="font-weight-bold"
><v-icon class="scale_beat mr-2" color="warning" :disabled="!(node && node.dedicated)"
>mdi-brightness-percent</v-icon
>{{ price_usd }} USD/Month</span
>{{ (price_usd! / 24 / 30).toFixed(2) }} USD/Hour</span
>
</template>

<span>
Discounts:
<v-spacer />
Expand Down

0 comments on commit ad30945

Please sign in to comment.