2022-03-05 16:29:58 +01:00
|
|
|
<script>
|
|
|
|
let app = new Vue({
|
|
|
|
el: "#app",
|
|
|
|
data: {
|
|
|
|
"modal_hostname": '',
|
|
|
|
"modal_id": '',
|
|
|
|
"delete_form_action": '',
|
|
|
|
showModal: false
|
|
|
|
},
|
|
|
|
methods: {
|
2022-10-20 02:56:35 +02:00
|
|
|
confirmDeleteModal(event) {
|
2022-03-05 16:29:58 +01:00
|
|
|
this.showModal = true;
|
2022-10-20 02:56:35 +02:00
|
|
|
this.modal_hostname = event.target.title;
|
|
|
|
this.modal_id = event.target.id;
|
2022-03-05 16:29:58 +01:00
|
|
|
this.delete_form_action = '{{$uri}}/' + this.modal_id;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|