2023-09-18 05:28:22 +08:00
|
|
|
<template>
|
|
|
|
<div ref="modal" @keydown.esc="cancel" class="modal" tabindex="-1" role="dialog">
|
|
|
|
<div class="modal-dialog modal-sm" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="sn-icon sn-icon-close"></i></button>
|
|
|
|
<h4 class="modal-title">
|
|
|
|
{{ i18n.t("my_modules.results.delete_modal.title") }}
|
|
|
|
</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<p>{{ i18n.t("my_modules.results.delete_modal.description_1") }}</p>
|
|
|
|
<p><b>{{ i18n.t("my_modules.results.delete_modal.description_2") }}</b></p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button class="btn btn-secondary" @click="cancel">{{ i18n.t('general.cancel') }}</button>
|
|
|
|
<button class="btn btn-danger" @click="confirm">{{ i18n.t("my_modules.results.delete_modal.confirm") }}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
2024-01-04 23:34:36 +08:00
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: 'deleteResultModal',
|
|
|
|
mounted() {
|
|
|
|
$(this.$refs.modal).modal('show');
|
|
|
|
$(this.$refs.modal).on('hidden.bs.modal', () => {
|
|
|
|
this.$emit('cancel');
|
|
|
|
});
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
confirm() {
|
|
|
|
$(this.$refs.modal).modal('hide');
|
|
|
|
this.$emit('confirm');
|
2023-09-18 05:28:22 +08:00
|
|
|
},
|
2024-01-04 23:34:36 +08:00
|
|
|
cancel() {
|
|
|
|
$(this.$refs.modal).modal('hide');
|
2023-09-18 05:28:22 +08:00
|
|
|
}
|
|
|
|
}
|
2024-01-04 23:34:36 +08:00
|
|
|
};
|
2023-09-18 05:28:22 +08:00
|
|
|
</script>
|