Skip to content

Commit

Permalink
set timeMin to modelRun list timeMin (#506)
Browse files Browse the repository at this point in the history
  • Loading branch information
BryonLewis authored Sep 13, 2024
1 parent 962407c commit f363af5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions vue/src/components/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { changeTime } from "../interactions/timeStepper";
import { useRoute } from "vue-router";
import ModeSelector from './ModeSelector.vue';
const timemin = ref(Math.floor(new Date(0).valueOf() / 1000));
const route = useRoute();
watch(() => route.path, (oldPath, newPath) => {
Expand Down Expand Up @@ -186,7 +185,7 @@ const satelliteLoadingColor = computed(() => {
<mode-selector />
<v-row>
<TimeSlider
:min="timemin"
:min="state.timeMin"
:max="Math.floor(Date.now() / 1000)"
/>
</v-row>
Expand Down
3 changes: 1 addition & 2 deletions vue/src/components/annotationViewer/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import type { Ref } from "vue";
import { changeTime } from "../../interactions/timeStepper";
import ErrorPopup from "../ErrorPopup.vue";
import ModeSelector from "../ModeSelector.vue";
const timemin = ref(Math.floor(new Date(0).valueOf() / 1000));
const queryFilters = computed<QueryArguments>(() => ({
performer: selectedPerformer.value.map((item) => item.short_code),
Expand Down Expand Up @@ -150,7 +149,7 @@ const satelliteLoadingColor = computed(() => {
<mode-selector />
<v-row>
<TimeSlider
:min="timemin || 0"
:min="state.timeMin"
:max="Math.floor(Date.now() / 1000)"
/>
</v-row>
Expand Down

0 comments on commit f363af5

Please sign in to comment.