- metered plan decimal extended into 3 places

- paginator fix
This commit is contained in:
Čarodej
2022-05-18 10:45:56 +02:00
parent 1e10ff32a8
commit 127f1dc4cf
9 changed files with 20 additions and 29 deletions

View File

@@ -58,7 +58,7 @@
</ContentGroup>
</ContentSidebar>
<router-view class="relative w-full overflow-x-hidden px-2.5 pb-12 md:px-6 lg:pt-6 lg:pb-0" />
<router-view class="relative w-full overflow-x-hidden px-2.5 pb-12 md:px-6 lg:pt-6 lg:pb-0 z-[5]" />
</div>
</template>

View File

@@ -75,9 +75,7 @@
v-model="plan.features.bandwidth.per_unit"
:placeholder="$t('type_bandwidth_price')"
type="number"
step="0.01"
min="0.01"
max="999999999999"
step=".001"
:class="{ '!border-rose-600': errors[0] }"
class="focus-border-theme input-dark"
/>
@@ -113,9 +111,7 @@
v-model="plan.features.storage.per_unit"
:placeholder="$t('type_storage_price')"
type="number"
step="0.01"
min="0.01"
max="999999999999"
step=".001"
:class="{ '!border-rose-600': errors[0] }"
class="focus-border-theme input-dark"
/>
@@ -150,9 +146,7 @@
v-model="plan.features.member.per_unit"
:placeholder="$t('type_member_price')"
type="number"
step="0.01"
min="0.01"
max="999999999999"
step=".001"
:class="{ '!border-rose-600': errors[0] }"
class="focus-border-theme input-dark"
/>
@@ -187,9 +181,7 @@
v-model="plan.features.flatFee.per_unit"
:placeholder="$t('type_flat_fee_price')"
type="number"
step="0.01"
min="0.01"
max="999999999999"
step=".001"
:class="{ '!border-rose-600': errors[0] }"
class="focus-border-theme input-dark"
/>

View File

@@ -148,6 +148,7 @@ export default {
let formatter = new Intl.NumberFormat('en-US', {
style: 'currency',
currency: currency,
maximumFractionDigits: 4,
})
return formatter.format(amount)