2023-01-10 07:28:15 -08:00
|
|
|
<template>
|
|
|
|
<Modal :name="EXECUTIONS_MODAL_KEY" width="80%" :eventBus="modalBus">
|
|
|
|
<template #content>
|
|
|
|
<ExecutionsList @closeModal="onCloseModal" />
|
|
|
|
</template>
|
|
|
|
</Modal>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
import ExecutionsList from '@/components/ExecutionsList.vue';
|
|
|
|
import Modal from '@/components/Modal.vue';
|
|
|
|
import { EXECUTIONS_MODAL_KEY } from '@/constants';
|
2023-04-06 06:32:45 -07:00
|
|
|
import { createEventBus } from '@/event-bus';
|
2023-01-10 07:28:15 -08:00
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
name: 'ExecutionsModal',
|
|
|
|
components: {
|
|
|
|
Modal,
|
|
|
|
ExecutionsList,
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
2023-04-06 06:32:45 -07:00
|
|
|
modalBus: createEventBus(),
|
2023-01-10 07:28:15 -08:00
|
|
|
EXECUTIONS_MODAL_KEY,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
onCloseModal() {
|
2023-04-06 06:32:45 -07:00
|
|
|
this.modalBus.emit('close');
|
2023-01-10 07:28:15 -08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|