diff options
author | Shefali Joshi <simplyrender@gmail.com> | 2022-01-29 02:11:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-29 02:11:07 +0300 |
commit | 2732e9f2a694cc45f4380ddfe1d1fc10635e5705 (patch) | |
tree | a52f10d3fb31ce9a2feba2631b13b4c816ce74e8 | |
parent | 232907618c00d04f6e18096d5cdb7cd59e5019a5 (diff) |
Revert "Request data when switching between real time and fixed. (#4807)" (#4809)v1.8.4release/1.8.4
This reverts commit 232907618c00d04f6e18096d5cdb7cd59e5019a5.
-rw-r--r-- | src/plugins/plot/MctPlot.vue | 4 | ||||
-rw-r--r-- | src/plugins/timeConductor/ConductorInputsFixed.vue | 12 | ||||
-rw-r--r-- | src/plugins/timeConductor/ConductorInputsRealtime.vue | 12 |
3 files changed, 2 insertions, 26 deletions
diff --git a/src/plugins/plot/MctPlot.vue b/src/plugins/plot/MctPlot.vue index 6825928f9..fabf19084 100644 --- a/src/plugins/plot/MctPlot.vue +++ b/src/plugins/plot/MctPlot.vue @@ -456,10 +456,6 @@ export default { }, updateRealTime(clock) { this.isRealTime = clock !== undefined; - //re-request data if we switch to realtime - if (this.isRealTime) { - this.updateDisplayBounds(this.timeContext.bounds()); - } }, /** diff --git a/src/plugins/timeConductor/ConductorInputsFixed.vue b/src/plugins/timeConductor/ConductorInputsFixed.vue index c40a1283a..a14a3ef96 100644 --- a/src/plugins/timeConductor/ConductorInputsFixed.vue +++ b/src/plugins/timeConductor/ConductorInputsFixed.vue @@ -131,17 +131,7 @@ export default { this.setViewFromBounds(bounds); }, clearAllValidation() { - let dateRefs = []; - - if (this.$refs.startDate) { - dateRefs.push(this.$refs.startDate); - } - - if (this.$refs.endDate) { - dateRefs.push(this.$refs.endDate); - } - - dateRefs.forEach(this.clearValidationForInput); + [this.$refs.startDate, this.$refs.endDate].forEach(this.clearValidationForInput); }, clearValidationForInput(input) { input.setCustomValidity(''); diff --git a/src/plugins/timeConductor/ConductorInputsRealtime.vue b/src/plugins/timeConductor/ConductorInputsRealtime.vue index 4a133e99f..3f6924a47 100644 --- a/src/plugins/timeConductor/ConductorInputsRealtime.vue +++ b/src/plugins/timeConductor/ConductorInputsRealtime.vue @@ -155,17 +155,7 @@ export default { this.setViewFromBounds(bounds); }, clearAllValidation() { - let dateRefs = []; - - if (this.$refs.startOffset) { - dateRefs.push(this.$refs.startOffset); - } - - if (this.$refs.endOffset) { - dateRefs.push(this.$refs.endOffset); - } - - dateRefs.forEach(this.clearValidationForInput); + [this.$refs.startOffset, this.$refs.endOffset].forEach(this.clearValidationForInput); }, clearValidationForInput(input) { input.setCustomValidity(''); |