7b602d3616
Updated confirmDeleteModal action Made consistency in all the index blade files to use the component
20 lines
527 B
PHP
20 lines
527 B
PHP
<script>
|
|
let app = new Vue({
|
|
el: "#app",
|
|
data: {
|
|
"modal_hostname": '',
|
|
"modal_id": '',
|
|
"delete_form_action": '',
|
|
showModal: false
|
|
},
|
|
methods: {
|
|
confirmDeleteModal(event) {
|
|
this.showModal = true;
|
|
this.modal_hostname = event.target.title;
|
|
this.modal_id = event.target.id;
|
|
this.delete_form_action = '{{$uri}}/' + this.modal_id;
|
|
}
|
|
}
|
|
});
|
|
</script>
|