Skip to content

Commit cc7098e

Browse files
Updated TwoBoxForm template: removed not useful 'use_steam_p2p' step and servervisible from flow
1 parent 2077975 commit cc7098e

1 file changed

Lines changed: 3 additions & 16 deletions

File tree

‎src/web/TwoBoxForm.go‎

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,9 @@ func ServeTwoBoxFormTemplate(w http.ResponseWriter, r *http.Request) {
347347
SubmitButtonText: localization.GetString("UIText_UPnPEnabled_SubmitButton"),
348348
SkipButtonText: localization.GetString("UIText_UPnPEnabled_SkipButton"),
349349
ConfigField: "UPNPEnabled",
350-
NextStep: "server_visible",
350+
NextStep: "local_ip_address",
351351
},
352+
//skipped for now, not needed and bugged, wontfix for now
352353
"server_visible": {
353354
ID: "server_visible",
354355
Title: localization.GetString("UIText_ServerVisible_Title"),
@@ -360,20 +361,6 @@ func ServeTwoBoxFormTemplate(w http.ResponseWriter, r *http.Request) {
360361
SubmitButtonText: localization.GetString("UIText_ServerVisible_SubmitButton"),
361362
SkipButtonText: localization.GetString("UIText_ServerVisible_SkipButton"),
362363
ConfigField: "ServerVisible", // We'll handle the boolean conversion in JS
363-
NextStep: "use_steam_p2p",
364-
},
365-
"use_steam_p2p": {
366-
ID: "use_steam_p2p",
367-
Title: localization.GetString("UIText_UseSteamP2P_Title"),
368-
HeaderTitle: localization.GetString("UIText_UseSteamP2P_HeaderTitle"),
369-
StepMessage: localization.GetString("UIText_UseSteamP2P_StepMessage"),
370-
PrimaryPlaceholderText: localization.GetString("UIText_UseSteamP2P_PrimaryPlaceholder"),
371-
PrimaryLabel: localization.GetString("UIText_UseSteamP2P_PrimaryLabel"),
372-
SecondaryLabel: "",
373-
SecondaryLabelType: "hidden",
374-
SubmitButtonText: localization.GetString("UIText_UseSteamP2P_SubmitButton"),
375-
SkipButtonText: localization.GetString("UIText_UseSteamP2P_SkipButton"),
376-
ConfigField: "UseSteamP2P",
377364
NextStep: "local_ip_address",
378365
},
379366
"local_ip_address": {
@@ -383,7 +370,7 @@ func ServeTwoBoxFormTemplate(w http.ResponseWriter, r *http.Request) {
383370
StepMessage: localization.GetString("UIText_LocalIPAddress_StepMessage"),
384371
PrimaryPlaceholderText: localization.GetString("UIText_LocalIPAddress_PrimaryPlaceholder"),
385372
PrimaryLabel: localization.GetString("UIText_LocalIPAddress_PrimaryLabel"),
386-
SecondaryLabel: localization.GetString("UIText_LocalIPAddress_SecondaryLabel"),
373+
SecondaryLabel: "",
387374
SecondaryLabelType: "hidden",
388375
SubmitButtonText: localization.GetString("UIText_LocalIPAddress_SubmitButton"),
389376
SkipButtonText: localization.GetString("UIText_LocalIPAddress_SkipButton"),

0 commit comments

Comments
 (0)