hook up server cards and implement updated styles

This commit is contained in:
tdgao
2026-03-20 11:03:48 -06:00
parent d37c1bdeb1
commit 0a05061bf7
4 changed files with 235 additions and 23 deletions
@@ -233,6 +233,7 @@
v-if="subscription.serverInfo"
v-bind="subscription.serverInfo"
:pending-change="getPendingChange(subscription)"
:cancellation-date="getCancellationDate(subscription)"
/>
<div v-else class="w-fit">
<p>
@@ -919,6 +920,13 @@ const getPyroCharge = (subscription) => {
)
}
const getCancellationDate = (subscription) => {
const charge = getPyroCharge(subscription)
if (!charge) return null
if (charge.status === 'cancelled') return charge.due
return null
}
const getProductSize = (product) => {
if (!product || !product.metadata) return 'Unknown'
const ramSize = product.metadata.ram