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">
|
2023-04-21 08:51:08 -07:00
|
|
|
import { defineComponent } from 'vue';
|
2023-01-10 07:28:15 -08:00
|
|
|
import ExecutionsList from '@/components/ExecutionsList.vue';
|
|
|
|
import Modal from '@/components/Modal.vue';
|
|
|
|
import { EXECUTIONS_MODAL_KEY } from '@/constants';
|
2023-05-19 06:31:16 -07:00
|
|
|
import { createEventBus } from 'n8n-design-system';
|
2023-01-10 07:28:15 -08:00
|
|
|
|
2023-04-21 08:51:08 -07:00
|
|
|
export default defineComponent({
|
2023-01-10 07:28:15 -08:00
|
|
|
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>
|