Skip to content

Commit

Permalink
add back date selector
Browse files Browse the repository at this point in the history
  • Loading branch information
davetsay committed Nov 14, 2024
1 parent 211272c commit 140184e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/plugins/timeConductor/TimePopupFixed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
aria-label="Start time"
@input="validateAllBounds('startTime')"
/>
<DatePicker
v-if="isTimeSystemUTCBased"
class="c-ctrl-wrapper--menus-left"
:default-date-time="formattedBounds.start"
@date-selected="dateSelected($event, 'start')"
/>
</div>

<div class="pr-time-input pr-time-input__start-end-sep icon-arrows-right-left"></div>
Expand All @@ -52,6 +58,12 @@
aria-label="End time"
@input="validateAllBounds('endTime')"
/>
<DatePicker
v-if="isTimeSystemUTCBased"
class="c-ctrl-wrapper--menus-left"
:default-date-time="formattedBounds.end"
@date-selected="dateSelected($event, 'end')"
/>
</div>

<div class="pr-time-input pr-time-input--buttons">
Expand All @@ -72,7 +84,12 @@
</template>

<script>
import DatePicker from './DatePicker.vue';
export default {
components: {
DatePicker
},
inject: [
'openmct',
'isTimeSystemUTCBased',
Expand Down Expand Up @@ -235,6 +252,10 @@ export default {
if ($event.target.className.indexOf('c-button icon-x') > -1) {
this.$emit('dismiss');
}
},
dateSelected(date, refName) {
this.formattedBounds[refName] = this.timeSystemFormatter.format(date);
this.validateInput(refName);

Check warning on line 258 in src/plugins/timeConductor/TimePopupFixed.vue

View check run for this annotation

Codecov / codecov/patch

src/plugins/timeConductor/TimePopupFixed.vue#L257-L258

Added lines #L257 - L258 were not covered by tests
}
}
};
Expand Down

0 comments on commit 140184e

Please sign in to comment.