2023-07-06 22:05:03 +08:00
|
|
|
<template>
|
2023-08-10 15:43:31 +08:00
|
|
|
<div ref="modal" class="modal centered-modal" id="modalDestroyShareableLink" tabindex="-1" role="dialog">
|
2023-07-06 22:05:03 +08:00
|
|
|
<div class="modal-dialog" 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-07-06 22:05:03 +08:00
|
|
|
<h4 class="modal-title" id="modal-destroy-shareable-link">
|
|
|
|
{{ i18n.t('shareable_links.destroy_modal.title')}}
|
|
|
|
</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2023-08-21 22:07:38 +08:00
|
|
|
<p class="text-sm">{{ i18n.t('shareable_links.destroy_modal.description')}}</p>
|
2023-07-06 22:05:03 +08:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2023-08-09 00:39:32 +08:00
|
|
|
<button class="btn btn-secondary" tabindex="0" @click="cancel">{{ i18n.t('general.cancel') }}</button>
|
|
|
|
<button class="btn btn-danger" tabindex="0" @click="confirm">{{ i18n.t('shareable_links.destroy_modal.deactivate')}}</button>
|
2023-07-06 22:05:03 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
2024-01-04 23:34:36 +08:00
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: 'deleteShareableLinkModal',
|
|
|
|
mounted() {
|
|
|
|
$(this.$refs.modal).modal('show');
|
|
|
|
$(this.$refs.modal).on('hidden.bs.modal', () => {
|
|
|
|
this.$emit('cancel');
|
|
|
|
});
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
confirm() {
|
|
|
|
this.$emit('confirm');
|
|
|
|
$(this.$refs.modal).modal('hide');
|
2023-07-06 22:05:03 +08:00
|
|
|
},
|
2024-01-04 23:34:36 +08:00
|
|
|
cancel() {
|
|
|
|
$(this.$refs.modal).modal('hide');
|
2023-07-06 22:05:03 +08:00
|
|
|
}
|
|
|
|
}
|
2024-01-04 23:34:36 +08:00
|
|
|
};
|
2023-07-06 22:05:03 +08:00
|
|
|
</script>
|