Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 188bef2ece |
@@ -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 */}
|
||||||
|
|||||||
Reference in New Issue
Block a user