Compare commits

..

1 Commits

Author SHA1 Message Date
188bef2ece Budget setting and all dollar to chf
All checks were successful
Build and Push / build (push) Successful in 1m28s
2026-05-02 23:16:14 +02:00

View File

@@ -43,6 +43,19 @@ export default async function TenantDetailPage({
// the same page but with edit controls hidden / fields read-only. // the same page but with edit controls hidden / fields read-only.
const canEdit = canMutate(user); const canEdit = canMutate(user);
// TEMP DIAGNOSTIC for budget-card non-rendering. Logs the prop
// values that flow into UsageDisplay so we can see which one is
// turning the editable variant off. Remove once cause is found.
console.log(
"[tenant page] budget edit props",
JSON.stringify({
tenantName: name,
canEdit,
isPlatform: user.isPlatform,
roles: user.roles,
})
);
// Bug 31: customer-side cancel/resume control. Same gate as canEdit // Bug 31: customer-side cancel/resume control. Same gate as canEdit
// — only owners (or platform staff) may toggle the subscription. // — only owners (or platform staff) may toggle the subscription.
// The current state comes from spec.suspend on the CR. // The current state comes from spec.suspend on the CR.
@@ -199,7 +212,7 @@ export default async function TenantDetailPage({
<h2 className="text-xs font-semibold uppercase tracking-wider text-text-muted mb-3"> <h2 className="text-xs font-semibold uppercase tracking-wider text-text-muted mb-3">
{t("usage")} {t("usage")}
</h2> </h2>
<UsageDisplay tenant={name} /> <UsageDisplay tenant={name} canEditBudget={canEdit} />
</section> </section>
{/* Packages */} {/* Packages */}