File tree Expand file tree Collapse file tree 4 files changed +21
-23
lines changed Expand file tree Collapse file tree 4 files changed +21
-23
lines changed Original file line number Diff line number Diff line change 1
1
<script setup>
2
- import { Link } from " @inertiajs/vue3"
2
+ import { useForm } from " @inertiajs/vue3"
3
3
import BaseButton from " @/Components/BaseButton.vue"
4
4
import BaseButtons from " @/Components/BaseButtons.vue"
5
5
import {
@@ -25,6 +25,14 @@ const props = defineProps({
25
25
default: 0
26
26
},
27
27
})
28
+
29
+ const formDelete = useForm ({})
30
+
31
+ function destroy (id ) {
32
+ if (confirm (" Are you sure you want to delete?" )) {
33
+ formDelete .delete (route (" admin.category.type.item.destroy" , {type: props .categoryType .id , item: id}))
34
+ }
35
+ }
28
36
</script >
29
37
30
38
<template >
Original file line number Diff line number Diff line change 1
1
<script setup>
2
- import { Link } from " @inertiajs/vue3"
2
+ import { useForm } from " @inertiajs/vue3"
3
3
import BaseButton from " @/Components/BaseButton.vue"
4
4
import BaseButtons from " @/Components/BaseButtons.vue"
5
5
import BaseIcon from ' @/Components/BaseIcon.vue'
@@ -26,6 +26,15 @@ const props = defineProps({
26
26
default: 0
27
27
},
28
28
})
29
+
30
+ const formDelete = useForm ({})
31
+
32
+ function destroy (id ) {
33
+ if (confirm (" Are you sure you want to delete?" )) {
34
+ formDelete .delete (route (" admin.menu.item.destroy" , {menu: props .menu .id , item: id}))
35
+ }
36
+ }
37
+
29
38
</script >
30
39
31
40
<template >
@@ -36,7 +45,6 @@ const props = defineProps({
36
45
v-if =" item.icon"
37
46
:path =" item.icon"
38
47
class =" flex-none"
39
- :class =" activeInactiveStyle"
40
48
:size =" 18"
41
49
/>
42
50
{{ item.name }}
Original file line number Diff line number Diff line change 1
1
<script setup>
2
- import { Head , useForm } from " @inertiajs/vue3"
2
+ import { Head } from " @inertiajs/vue3"
3
3
import {
4
4
mdiLink ,
5
5
mdiPlus ,
@@ -30,14 +30,6 @@ const props = defineProps({
30
30
},
31
31
})
32
32
33
- const formDelete = useForm ({})
34
-
35
- function destroy (id ) {
36
- if (confirm (" Are you sure you want to delete?" )) {
37
- formDelete .delete (route (" admin.category.type.item.destroy" , {type: props .categoryType .id , item: id}))
38
- }
39
- }
40
-
41
33
</script >
42
34
43
35
<template >
Original file line number Diff line number Diff line change 1
1
<script setup>
2
- import { Head , Link , useForm } from " @inertiajs/vue3"
2
+ import { Head } from " @inertiajs/vue3"
3
3
import {
4
4
mdiLink ,
5
5
mdiPlus ,
6
- mdiSquareEditOutline ,
7
- mdiTrashCan ,
8
6
mdiAlertBoxOutline ,
9
7
mdiArrowLeftBoldOutline
10
8
} from " @mdi/js"
@@ -32,14 +30,6 @@ const props = defineProps({
32
30
},
33
31
})
34
32
35
- const formDelete = useForm ({})
36
-
37
- function destroy (id ) {
38
- if (confirm (" Are you sure you want to delete?" )) {
39
- formDelete .delete (route (" admin.menu.item.destroy" , {menu: props .menu .id , item: id}))
40
- }
41
- }
42
-
43
33
</script >
44
34
45
35
<template >
You can’t perform that action at this time.
0 commit comments