Budget setting and all dollar to chf
All checks were successful
Build and Push / build (push) Successful in 1m28s
All checks were successful
Build and Push / build (push) Successful in 1m28s
This commit is contained in:
@@ -43,6 +43,19 @@ export default async function TenantDetailPage({
|
||||
// the same page but with edit controls hidden / fields read-only.
|
||||
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
|
||||
// — only owners (or platform staff) may toggle the subscription.
|
||||
// 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">
|
||||
{t("usage")}
|
||||
</h2>
|
||||
<UsageDisplay tenant={name} />
|
||||
<UsageDisplay tenant={name} canEditBudget={canEdit} />
|
||||
</section>
|
||||
|
||||
{/* Packages */}
|
||||
|
||||
Reference in New Issue
Block a user