scinote-web/app/javascript/vue/shared/content/modal/delete.vue

38 lines
1.3 KiB
Vue
Raw Normal View History

<template>
2022-05-18 17:12:53 +08:00
<div ref="modal" @keydown.esc="cancel" class="modal" id="modalDestroyProtocolContent" tabindex="-1" role="dialog">
2022-07-13 21:53:08 +08:00
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
2023-08-17 19:55:17 +08:00
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="sn-icon sn-icon-close"></i></button>
2023-10-09 20:54:22 +08:00
<h4 class="modal-title" id="modal-delete-result-element">
{{ i18n.t('protocols.steps.modals.delete_element.title')}}
</h4>
</div>
<div class="modal-body">
<p>{{ i18n.t('protocols.steps.modals.delete_element.description_1')}}</p>
<p><b>{{ i18n.t('protocols.steps.modals.delete_element.description_2')}}</b></p>
</div>
<div class="modal-footer">
2024-02-15 21:10:24 +08:00
<button class="btn btn-secondary" @click="close">{{ i18n.t('general.cancel') }}</button>
<button class="btn btn-danger" @click="confirm">{{ i18n.t('protocols.steps.modals.delete_element.confirm')}}</button>
</div>
</div>
</div>
</div>
</template>
<script>
2024-02-15 21:10:24 +08:00
import modalMixin from '../../modal_mixin';
export default {
name: 'deleteElementModal',
2024-02-15 21:10:24 +08:00
mixins: [modalMixin],
methods: {
confirm() {
this.$emit('confirm');
2024-02-15 21:10:24 +08:00
this.$nextTick(() => this.close);
2022-05-04 16:25:53 +08:00
}
}
};
</script>