You've already forked AstralRinth
forked from didirus/AstralRinth
Fix QA issues
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, computed, useTemplateRef, nextTick } from 'vue'
|
import { ref, computed, useTemplateRef, nextTick, watch } from 'vue'
|
||||||
import NewModal from '../modal/NewModal.vue'
|
import NewModal from '../modal/NewModal.vue'
|
||||||
import { type MessageDescriptor, useVIntl, defineMessage } from '@vintl/vintl'
|
import { type MessageDescriptor, useVIntl, defineMessage } from '@vintl/vintl'
|
||||||
import {
|
import {
|
||||||
@@ -194,6 +194,10 @@ async function setStep(step: Step | undefined, skipValidation = false) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
watch(selectedPlan, () => {
|
||||||
|
console.log(selectedPlan.value)
|
||||||
|
})
|
||||||
|
|
||||||
function begin(interval: ServerBillingInterval, plan?: ServerPlan) {
|
function begin(interval: ServerBillingInterval, plan?: ServerPlan) {
|
||||||
loading.value = false
|
loading.value = false
|
||||||
selectedPlan.value = plan
|
selectedPlan.value = plan
|
||||||
|
|||||||
@@ -82,11 +82,15 @@ function updateRamStock(regionToCheck: string, newRam: number) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
watch(selectedRam, (newRam: number) => {
|
watch(selectedRam, (newRam: number) => {
|
||||||
updateRamStock(selectedRegion.value, newRam)
|
if (props.custom && selectedRegion.value) {
|
||||||
|
updateRamStock(selectedRegion.value, newRam)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
watch(selectedRegion, (newRegion: number) => {
|
watch(selectedRegion, (newRegion: string | undefined) => {
|
||||||
updateRamStock(newRegion, selectedRam.value)
|
if (props.custom && newRegion) {
|
||||||
|
updateRamStock(newRegion, selectedRam.value)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const currentStock = ref<{ [region: string]: number }>({})
|
const currentStock = ref<{ [region: string]: number }>({})
|
||||||
@@ -154,7 +158,9 @@ onMounted(() => {
|
|||||||
: firstWithStock?.shortcode
|
: firstWithStock?.shortcode
|
||||||
}
|
}
|
||||||
selectedRegion.value = stockedRegion
|
selectedRegion.value = stockedRegion
|
||||||
updateRamStock(stockedRegion, minRam.value)
|
if (props.custom && stockedRegion) {
|
||||||
|
updateRamStock(stockedRegion, minRam.value)
|
||||||
|
}
|
||||||
loading.value = false
|
loading.value = false
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ function setInterval(newInterval: ServerBillingInterval) {
|
|||||||
>{{
|
>{{
|
||||||
formatPrice(
|
formatPrice(
|
||||||
locale,
|
locale,
|
||||||
prices?.prices?.intervals?.['quarterly'] ?? 0 / monthsInInterval['quarterly'],
|
(prices?.prices?.intervals?.['quarterly'] ?? 0) / monthsInInterval['quarterly'],
|
||||||
currency,
|
currency,
|
||||||
true,
|
true,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user