INSR-7757: Copilot suggestions to fix a couple bugs
This commit is contained in:
parent
0a9007cc33
commit
694c274be4
2 changed files with 6 additions and 4 deletions
|
|
@ -214,7 +214,7 @@ export default {
|
|||
},
|
||||
calendarOptionSelected(calendarOptionIndex) {
|
||||
this.setCalendarAppointment(this.calendarValues[calendarOptionIndex]);
|
||||
this.calendarOptionsOpen = false;
|
||||
this.closeCalendarOptions();
|
||||
},
|
||||
getCalendarData(type) {
|
||||
let URL = '';
|
||||
|
|
@ -262,6 +262,9 @@ export default {
|
|||
this.closeCalendarOptions();
|
||||
}
|
||||
}
|
||||
},
|
||||
unmounted() {
|
||||
window.removeEventListener('click', this.clickListener);
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -15,14 +15,13 @@
|
|||
</template>
|
||||
<script>
|
||||
import calendarOptionButton from './calendar-option-button/calendar-option-button.vue';
|
||||
// Validation for the modal button
|
||||
export default {
|
||||
name: 'calendar-modal-question',
|
||||
name: 'calendar-option-selection',
|
||||
components: {
|
||||
calendarOptionButton
|
||||
},
|
||||
props: {
|
||||
calendarOptionsData: Object,
|
||||
calendarOptionsData: Array,
|
||||
open: Boolean
|
||||
},
|
||||
emits: ['calendar-option-selected'],
|
||||
|
|
|
|||
Loading…
Reference in a new issue