You've already forked AstralRinth
forked from didirus/AstralRinth
Fix upgrades being allowed when out of stock (#3307)
This commit is contained in:
@@ -709,7 +709,7 @@ const customNotAllowedToContinue = computed(
|
|||||||
(!customMatchingProduct.value || customLoading.value || customOutOfStock.value),
|
(!customMatchingProduct.value || customLoading.value || customOutOfStock.value),
|
||||||
)
|
)
|
||||||
const upgradeNotAllowedToContinue = computed(
|
const upgradeNotAllowedToContinue = computed(
|
||||||
() => props.existingSubscription && (!hasUpgradeCapacityForConfig.value || customLoading.value),
|
() => props.existingSubscription && (customOutOfStock.value || customLoading.value),
|
||||||
)
|
)
|
||||||
|
|
||||||
const customServerConfig = reactive({
|
const customServerConfig = reactive({
|
||||||
@@ -1009,11 +1009,6 @@ async function submitPayment() {
|
|||||||
paymentLoading.value = false
|
paymentLoading.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
const hasUpgradeCapacityForConfig = computed(() => {
|
|
||||||
// TODO: Check for upgrade capacity here when Pyro provides route
|
|
||||||
return props.existingPlan
|
|
||||||
})
|
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
show: () => {
|
show: () => {
|
||||||
if (props.customServer) {
|
if (props.customServer) {
|
||||||
|
|||||||
Reference in New Issue
Block a user