MCPcopy Create free account
hub / github.com/bytebase/bytebase / handleConfirm

Function handleConfirm

frontend/src/react/components/ui/feature-modal.tsx:73–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 : t("common.learn-more");
72
73 const handleConfirm = () => {
74 if (instanceMissingLicense) {
75 void router.push({
76 name: INSTANCE_ROUTE_DASHBOARD,
77 query: {
78 assignLicense: "1",
79 instances: instance?.name,
80 },
81 });
82 } else {
83 void router.push(autoSubscriptionRoute());
84 }
85 close();
86 };
87
88 const requiredPlanLabel = t(
89 `subscription.plan.${planLabel[requiredPlan] ?? "enterprise"}.title`

Callers 5

ViewNameDialogFunction · 0.50
FunctionNameDialogFunction · 0.50
ProcedureNameDialogFunction · 0.50
SchemaNameDialogFunction · 0.50
TableNamePopoverFunction · 0.50

Calls 2

autoSubscriptionRouteFunction · 0.90
closeFunction · 0.70

Tested by

no test coverage detected