mirror of
https://github.com/logto-io/logto.git
synced 2025-04-07 23:01:25 -05:00
refactor(console): support multi-region for paid plans
This commit is contained in:
parent
06ac416750
commit
b10e138f87
2 changed files with 3 additions and 2 deletions
packages/console/src
|
@ -41,8 +41,8 @@ function SelectTenantPlanModal({ tenantData, onClose }: Props) {
|
|||
const { id: planId } = plan;
|
||||
try {
|
||||
if (planId === ReservedPlanId.Free) {
|
||||
const { name, tag } = tenantData;
|
||||
const newTenant = await cloudApi.post('/api/tenants', { body: { name, tag } });
|
||||
const { name, tag, regionName } = tenantData;
|
||||
const newTenant = await cloudApi.post('/api/tenants', { body: { name, tag, regionName } });
|
||||
|
||||
reportToGoogle(GtagConversionId.CreateProductionTenant, { transactionId: newTenant.id });
|
||||
onClose(newTenant);
|
||||
|
|
|
@ -59,6 +59,7 @@ const useSubscribe = () => {
|
|||
tenantId,
|
||||
tenantName: tenantData?.name,
|
||||
tenantTag: tenantData?.tag,
|
||||
tenantRegionName: tenantData?.regionName,
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue