mirror of
https://github.com/HeyPuter/puter.git
synced 2026-09-21 04:36:18 +00:00
feat: tell the plan picker when a seat's plan is on the way out
The billing view now names each seat's status; the console passes it through to the picker so a cancel-pending plan can be kept, plus the two strings that flow renders.
This commit is contained in:
@@ -353,6 +353,7 @@ const loadPlan = async (teamUid) => {
|
||||
status: 'ready',
|
||||
offerings: Array.isArray(cat.offerings) ? cat.offerings : [],
|
||||
seatTiers: entry?.seatTiers ?? {},
|
||||
seatStatuses: entry?.seatStatuses ?? {},
|
||||
tierQuantities: entry?.tierQuantities ?? {},
|
||||
subStatus: entry?.status ?? null,
|
||||
};
|
||||
@@ -370,6 +371,7 @@ const changeSeatPlan = ($el_window, username, uuid) => {
|
||||
seatUuid: uuid,
|
||||
username,
|
||||
currentTier: state.plan.seatTiers?.[uuid] ?? null,
|
||||
currentStatus: state.plan.seatStatuses?.[uuid] ?? null,
|
||||
onDone: () => refresh($el_window),
|
||||
},
|
||||
}));
|
||||
|
||||
@@ -567,6 +567,8 @@ const en = {
|
||||
teams_upgrade_to: 'Upgrade to %%',
|
||||
teams_switch_to: 'Switch to %%',
|
||||
teams_switch_to_free: 'Switch to Free',
|
||||
teams_keep_plan: 'Keep %%',
|
||||
teams_plan_ending: 'Ends with the current period',
|
||||
teams_cancel_keeps_until: 'Done. The plan stays active until the end of the period it was paid for, then the account moves to Free.',
|
||||
teams_audit_range: '{{from}}–{{to}} of {{total}}',
|
||||
previous: 'Previous',
|
||||
|
||||
Reference in New Issue
Block a user