1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-09-29 03:37:08 +02:00
my-idlers/resources/views/components/modal-delete-script.blade.php
cp6 7b602d3616 Updated confirmDeleteModal action
Updated confirmDeleteModal action
Made consistency in all the index blade files to use the component
2022-10-20 11:56:35 +11:00

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>