diff --git a/Thermo.Active/wwwroot/assets/styles/base/modals.less b/Thermo.Active/wwwroot/assets/styles/base/modals.less index c98de89e..569f945b 100644 --- a/Thermo.Active/wwwroot/assets/styles/base/modals.less +++ b/Thermo.Active/wwwroot/assets/styles/base/modals.less @@ -3578,11 +3578,14 @@ display: flex; justify-content: center; align-items: center; + &:active{ + background-image: linear-gradient(to bottom,#002680, #1756ad); + + } } button:disabled { background-color: #002680 !important; - ; filter: grayscale(100%); } diff --git a/Thermo.Active/wwwroot/assets/styles/style.css b/Thermo.Active/wwwroot/assets/styles/style.css index 4f9cfc07..3ca1c81e 100644 --- a/Thermo.Active/wwwroot/assets/styles/style.css +++ b/Thermo.Active/wwwroot/assets/styles/style.css @@ -3758,6 +3758,9 @@ article .box .body { justify-content: center; align-items: center; } +.imageViewerZoom button:active { + background-image: linear-gradient(to bottom, #002680, #1756ad); +} .imageViewerZoom button:disabled { background-color: #002680 !important; filter: grayscale(100%); diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/thermocamera.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/thermocamera.ts index 9e63f34b..9e58fcc8 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/thermocamera.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/thermocamera.ts @@ -35,6 +35,11 @@ export default class Thermocamera extends Vue { timeoutLastTakenImage = 0; timeCamDiff = " "; + tcamBTNStatus:{ + enabled: boolean, + visible: boolean + } = {enabled : false, visible: true}; + TCamData: { imageSize: { x: number, y: number }, rangeTemperature: { max: number, min: number }, @@ -45,12 +50,10 @@ export default class Thermocamera extends Vue { @Watch("warmers", { deep: true }) async ChangedTemps() { - - - this.btnModeEnabled = false; + this.tcamBTNStatus.enabled = false; for (const ch of store.state.warmers.channels) { - if (ch.tCamTempSet > 0) { - this.btnModeEnabled = true; + if (ch.tCamTempSet > 0 && ch.tCamActive) { + this.tcamBTNStatus.enabled = true; break; } } diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/thermocamera.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/thermocamera.vue index 926d780e..b774ca0d 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/thermocamera.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/setup/riscaldi/components/base-components/thermocamera.vue @@ -79,7 +79,7 @@