From 0aaff35e42b33421bc7a7670b9f63cc510e04072 Mon Sep 17 00:00:00 2001 From: ori agranat Date: Sat, 12 Oct 2019 18:09:05 +0300 Subject: [PATCH] added camera settings send and general settings send --- .../src/views/SettingsViewes/Cameras.vue | 5 +++++ .../src/views/SettingsViewes/General.vue | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/New client/chameleon-client/src/views/SettingsViewes/Cameras.vue b/New client/chameleon-client/src/views/SettingsViewes/Cameras.vue index dac4280f5..728ea1466 100644 --- a/New client/chameleon-client/src/views/SettingsViewes/Cameras.vue +++ b/New client/chameleon-client/src/views/SettingsViewes/Cameras.vue @@ -22,6 +22,11 @@ import CVnumberinput from '../../components/cv-number-input' } }, + methods:{ + sendCameraSettings(){ + this.handleInput('cameraSettings',this.cameraSettings); + } + }, computed:{ currentCameraIndex:{ get(){ diff --git a/New client/chameleon-client/src/views/SettingsViewes/General.vue b/New client/chameleon-client/src/views/SettingsViewes/General.vue index 737cb8a0c..09b5f919d 100644 --- a/New client/chameleon-client/src/views/SettingsViewes/General.vue +++ b/New client/chameleon-client/src/views/SettingsViewes/General.vue @@ -8,7 +8,7 @@ - Save General Settings + Save General Settings @@ -27,6 +27,11 @@ import CVinput from '../../components/cv-input' return { } }, + methods:{ + sendGeneralSettings(){ + this.handleInput('generalSettings',this.settings); + } + }, computed:{ isDisabled(){ if(this.settings.connectionType === 0){ @@ -37,12 +42,8 @@ import CVinput from '../../components/cv-input' settings:{ get(){ return this.$store.state.settings; - }, - set(value){ - this.$store.commit('settings',value); } } - } }