From 45686b7c9dbf34f30eb1e5307b552d688f47a033 Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 13 Sep 2020 08:58:56 -0700 Subject: [PATCH] Add NT servermode switch (#120) --- photon-client/src/store/index.js | 1 + photon-client/src/views/SettingsViews/Networking.vue | 8 ++++++++ .../photonvision/common/configuration/NetworkConfig.java | 5 +++++ .../dataflow/networktables/NetworkTablesManager.java | 6 +++--- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/photon-client/src/store/index.js b/photon-client/src/store/index.js index 4b52e0ee6..da51e2347 100644 --- a/photon-client/src/store/index.js +++ b/photon-client/src/store/index.js @@ -110,6 +110,7 @@ export default new Vuex.Store({ staticIp: "", netmask: "", hostname: "photonvision", + runNTServer: false, }, lighting: { supported: true, diff --git a/photon-client/src/views/SettingsViews/Networking.vue b/photon-client/src/views/SettingsViews/Networking.vue index d92e1059e..4a2cd0875 100644 --- a/photon-client/src/views/SettingsViews/Networking.vue +++ b/photon-client/src/views/SettingsViews/Networking.vue @@ -4,6 +4,12 @@ v-model="settings.teamNumber" name="Team Number" :rules="[v => (v > 0) || 'Team number must be greater than zero', v => (v < 10000) || 'Team number must have fewer than five digits']" + class="mb-4" + /> +