scinote-web/app/javascript/vue/protocol/step_components/text.vue
2022-05-04 10:36:13 +02:00

26 lines
672 B
Vue

<template>
<div class="step-text-container">
Text
<button class="btn icon-btn btn-light" @click="showDeleteModal">
<i class="fas fa-trash"></i>
</button>
<deleteComponentModal v-if="confirmingDelete" @confirm="deleteComponent" @cancel="closeDeleteModal"/>
</div>
</template>
<script>
import DeleteMixin from 'vue/protocol/mixins/components/delete.js'
import deleteComponentModal from 'vue/protocol/modals/delete_component.vue'
export default {
name: 'StepText',
components: { deleteComponentModal },
mixins: [DeleteMixin],
props: {
element: {
type: Object,
required: true
}
}
}
</script>