1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 23:42:32 +01: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>