fixed var names in website

This commit is contained in:
ori
2019-08-20 13:26:48 -07:00
parent fa49aabf74
commit 7734a89c88
6 changed files with 12 additions and 7 deletions

View File

@@ -196,8 +196,9 @@ class SettingsManager(metaclass=Singleton):
self.save_settings()
# after all values has been set change settings
ChangeIP(connection_type=self.general_settings['connection_type'] ,hostname=self.general_settings['hostname'], ip=self.general_settings['ip'],
netmask=self.general_settings['netmask'], gateway=self.general_settings['gateway'])
ChangeIP(connection_type=self.general_settings['connection_type'] ,hostname=self.general_settings['hostname'],
ip=self.general_settings['ip'], netmask=self.general_settings['netmask'],
gateway=self.general_settings['gateway'])

View File

@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>Chameleon Vision</title><link href=/css/app.bd8aa8d9.css rel=preload as=style><link href=/js/app.5bd5cd15.js rel=preload as=script><link href=/js/chunk-vendors.a3ecb371.js rel=preload as=script><link href=/css/app.bd8aa8d9.css rel=stylesheet></head><body><noscript><strong>We're sorry but Chameleon Vision doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.a3ecb371.js></script><script src=/js/app.5bd5cd15.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>Chameleon Vision</title><link href=/css/app.bd8aa8d9.css rel=preload as=style><link href=/js/app.10bc1021.js rel=preload as=script><link href=/js/chunk-vendors.a3ecb371.js rel=preload as=script><link href=/css/app.bd8aa8d9.css rel=stylesheet></head><body><noscript><strong>We're sorry but Chameleon Vision doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.a3ecb371.js></script><script src=/js/app.10bc1021.js></script></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -82,6 +82,7 @@
'team_number':this.team_number,
'connection_type':this.connection_type,
'ip':this.ip,
'netmask':this.netmask,
'gateway':this.gateway,
'hostname':this.hostname}});
}
@@ -115,7 +116,7 @@
get: function(){
return this.$store.state.netmask;
},
set: function(){
set: function(value){
this.$store.commit('netmask',value);
}
},
@@ -136,7 +137,7 @@
}
},
isConnection: function(){
if(this.connectionType == "DHCP"){
if(this.connection_type == "DHCP"){
return true
} else{
return false

View File

@@ -70,7 +70,7 @@ export const store = new Vuex.Store({
connection_type: set('connection_type'),
ip: set('ip'),
netmask: set('netmask'),
gateWay : set('gateway'),
gateway : set('gateway'),
hostname : set('hostname'),
is_binary: set('is_binary'),
cameraList : set('cameraList'),
@@ -102,7 +102,7 @@ export const store = new Vuex.Store({
connection_type: state => state.connectionType,
ip: state => state.ip,
netmask: state => state.netmask,
gateWay: state => state.gateWay,
gateway: state => state.gateway,
hostname: state => state.hostName,
is_binary: state => state.is_binary,
cameraList: state => state.cameraList,