diff --git a/photon-client/src/App.vue b/photon-client/src/App.vue index 99a9416fee..c0cf83c2a0 100644 --- a/photon-client/src/App.vue +++ b/photon-client/src/App.vue @@ -81,7 +81,7 @@ - Team number is {{ $store.state.settings.networkSettings.teamNumber }} + NT server is {{ $store.state.settings.networkSettings.ntServerAddress }} @@ -151,7 +151,7 @@ export default { computed: { needsTeamNumberSet: { get() { - return this.$store.state.settings.networkSettings.teamNumber < 1 + return this.$store.state.settings.networkSettings.ntServerAddress == "" && this.teamNumberDialog && this.$store.state.backendConnected && !this.$route.name.toLowerCase().includes("settings"); } diff --git a/photon-client/src/store/index.js b/photon-client/src/store/index.js index b0e4755695..52e29e524d 100644 --- a/photon-client/src/store/index.js +++ b/photon-client/src/store/index.js @@ -135,7 +135,7 @@ export default new Vuex.Store({ hardwarePlatform: "Unknown", }, networkSettings: { - teamNumber: 0, + ntServerAddress: "", supported: true, // Below options are only configurable if supported is true diff --git a/photon-client/src/views/PipelineView.vue b/photon-client/src/views/PipelineView.vue index a6f7ef4891..910642a1f1 100644 --- a/photon-client/src/views/PipelineView.vue +++ b/photon-client/src/views/PipelineView.vue @@ -475,7 +475,7 @@ export default { }, showNTWarning: { get() { - return (!this.$store.state.ntConnectionInfo.connected || this.$store.state.settings.networkSettings.runNTServer) && this.$store.state.settings.networkSettings.teamNumber > 0 && this.$store.state.backendConnected && !this.hideNTWarning; + return (!this.$store.state.ntConnectionInfo.connected || this.$store.state.settings.networkSettings.runNTServer) && this.$store.state.settings.networkSettings.ntServerAddress != "" && this.$store.state.backendConnected && !this.hideNTWarning; } }, }, diff --git a/photon-client/src/views/SettingsViews/Networking.vue b/photon-client/src/views/SettingsViews/Networking.vue index 38ed868fb4..507dd9bf79 100644 --- a/photon-client/src/views/SettingsViews/Networking.vue +++ b/photon-client/src/views/SettingsViews/Networking.vue @@ -4,21 +4,21 @@ ref="form" v-model="valid" > - - Team number is unset or invalid. NetworkTables will not be able to connect. + Team Number unset or invalid. NetworkTables will not be able to connect.