web/satellite added new billing screen feature flag (#4836)
New feature flag implemented to enable the new billing flow. Co-authored-by: Maximillian von Briesen <mobyvb@gmail.com>
This commit is contained in:
parent
261a6edf4f
commit
cbaca8b17e
@ -96,6 +96,7 @@ type Config struct {
|
||||
NewNavigation bool `help:"indicates if new navigation structure should be rendered" default:"true"`
|
||||
NewObjectsFlow bool `help:"indicates if new objects flow should be used" default:"true"`
|
||||
NewAccessGrantFlow bool `help:"indicates if new access grant flow should be used" default:"false"`
|
||||
NewBillingScreen bool `help:"indicates if new billing screens should be used" default:"false"`
|
||||
GeneratedAPIEnabled bool `help:"indicates if generated console api should be used" default:"false"`
|
||||
InactivityTimerEnabled bool `help:"indicates if session can be timed out due inactivity" default:"false"`
|
||||
InactivityTimerDelay int `help:"inactivity timer delay in seconds" default:"600"`
|
||||
@ -418,6 +419,7 @@ func (server *Server) appHandler(w http.ResponseWriter, r *http.Request) {
|
||||
NewNavigation bool
|
||||
NewObjectsFlow bool
|
||||
NewAccessGrantFlow bool
|
||||
NewBillingScreen bool
|
||||
InactivityTimerEnabled bool
|
||||
InactivityTimerDelay int
|
||||
OptionalSignupSuccessURL string
|
||||
@ -455,6 +457,7 @@ func (server *Server) appHandler(w http.ResponseWriter, r *http.Request) {
|
||||
data.NewNavigation = server.config.NewNavigation
|
||||
data.NewObjectsFlow = server.config.NewObjectsFlow
|
||||
data.NewAccessGrantFlow = server.config.NewAccessGrantFlow
|
||||
data.NewBillingScreen = server.config.NewBillingScreen
|
||||
data.InactivityTimerEnabled = server.config.InactivityTimerEnabled
|
||||
data.InactivityTimerDelay = server.config.InactivityTimerDelay
|
||||
data.OptionalSignupSuccessURL = server.config.OptionalSignupSuccessURL
|
||||
|
3
scripts/testdata/satellite-config.yaml.lock
vendored
3
scripts/testdata/satellite-config.yaml.lock
vendored
@ -181,6 +181,9 @@ compensation.withheld-percents: 75,75,75,50,50,50,25,25,25,0,0,0,0,0,0
|
||||
# indicates if new access grant flow should be used
|
||||
# console.new-access-grant-flow: false
|
||||
|
||||
# indicates if new billing screens should be used
|
||||
# console.new-billing-screen: false
|
||||
|
||||
# indicates if new navigation structure should be rendered
|
||||
# console.new-navigation: true
|
||||
|
||||
|
@ -33,6 +33,7 @@
|
||||
<meta name="new-navigation-structure" content="{{ .NewNavigation }}">
|
||||
<meta name="new-objects-flow" content="{{ .NewObjectsFlow }}">
|
||||
<meta name="new-access-grant-flow" content="{{ .NewAccessGrantFlow }}">
|
||||
<meta name="new-billing-screen" content="{{ .NewBillingScreen }}">
|
||||
<meta name="inactivity-timer-enabled" content="{{ .InactivityTimerEnabled }}">
|
||||
<meta name="inactivity-timer-delay" content="{{ .InactivityTimerDelay }}">
|
||||
<meta name="optional-signup-success-url" content="{{ .OptionalSignupSuccessURL }}">
|
||||
|
Loading…
Reference in New Issue
Block a user