diff --git a/photon-client/src/components/common/cv-radio.vue b/photon-client/src/components/common/cv-radio.vue
index 9436dcea7..292d52c2d 100644
--- a/photon-client/src/components/common/cv-radio.vue
+++ b/photon-client/src/components/common/cv-radio.vue
@@ -12,6 +12,7 @@
color="#ffd843"
:label="name"
:value="index"
+ :disabled="disabled"
/>
@@ -21,7 +22,7 @@
export default {
name: 'Radio',
// eslint-disable-next-line vue/require-prop-types
- props: ['value', 'list'],
+ props: ['value', 'list', 'disabled'],
data() {
return {}
},
diff --git a/photon-client/src/store/index.js b/photon-client/src/store/index.js
index b6e475aa1..ae8559875 100644
--- a/photon-client/src/store/index.js
+++ b/photon-client/src/store/index.js
@@ -108,7 +108,6 @@ export default new Vuex.Store({
// Below options are only configurable if supported is true
connectionType: 0, // 0 = DHCP, 1 = Static
staticIp: "",
- netmask: "",
hostname: "photonvision",
runNTServer: false,
},
@@ -182,6 +181,17 @@ export default new Vuex.Store({
}
},
+ mutateNetworkSettings: (state, payload) => {
+ for (let key in payload) {
+ if (!payload.hasOwnProperty(key)) continue;
+ const value = payload[key];
+ const settings = state.settings.networkSettings;
+ if (settings.hasOwnProperty(key)) {
+ Vue.set(settings, key, value);
+ }
+ }
+ },
+
mutatePipelineResults(state, payload) {
// Key: index, value: result
for (let key in payload) {
diff --git a/photon-client/src/views/SettingsViews/Networking.vue b/photon-client/src/views/SettingsViews/Networking.vue
index 9dadd9649..1d93f035b 100644
--- a/photon-client/src/views/SettingsViews/Networking.vue
+++ b/photon-client/src/views/SettingsViews/Networking.vue
@@ -4,34 +4,33 @@
ref="form"
v-model="valid"
>
+
-
-
-
+
-
-
-