Skip to content

Commit

Permalink
Revert "Request data when switching between real time and fixed. (#4807
Browse files Browse the repository at this point in the history
…)" (#4809)

This reverts commit 2329076.
  • Loading branch information
shefalijoshi authored Jan 28, 2022
1 parent 2329076 commit 2732e9f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 26 deletions.
4 changes: 0 additions & 4 deletions src/plugins/plot/MctPlot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
},

/**
Expand Down
12 changes: 1 addition & 11 deletions src/plugins/timeConductor/ConductorInputsFixed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
Expand Down
12 changes: 1 addition & 11 deletions src/plugins/timeConductor/ConductorInputsRealtime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
Expand Down

0 comments on commit 2732e9f

Please sign in to comment.