satellite/console: Pass pricing packages enabled config to frontend

Ensure that the value of "pricing packages enabled" flag on frontend is
the same as what is configured on the backend.

Change-Id: Id78771800a4973ebd3ad4e22f1953f6f71c75dd4
This commit is contained in:
Moby von Briesen 2023-05-03 18:12:48 -04:00
parent 034431e4a8
commit a229feac1e

View File

@ -536,6 +536,7 @@ func (server *Server) frontendConfigHandler(w http.ResponseWriter, r *http.Reque
PasswordMinimumLength: console.PasswordMinimumLength,
PasswordMaximumLength: console.PasswordMaximumLength,
ABTestingEnabled: server.config.ABTesting.Enabled,
PricingPackagesEnabled: server.config.PricingPackagesEnabled,
}
err := json.NewEncoder(w).Encode(&cfg)