Skip to content

Commit 19b8ab4

Browse files
add delete btn
1 parent 5bfe4fa commit 19b8ab4

File tree

1 file changed

+2
-2
lines changed
  • src/bulma/pages/administration/categories

1 file changed

+2
-2
lines changed

src/bulma/pages/administration/categories/Edit.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default {
5555
BaseForm, Confirmation, Fa, Uploader,
5656
},
5757
58-
inject: ['http', 'i18n', 'route', 'errorHandler', 'canAccess'],
58+
inject: ['http', 'i18n', 'route', 'errorHandler', 'canAccess', 'toastr'],
5959
6060
data: () => ({
6161
fileId: null,
@@ -65,7 +65,7 @@ export default {
6565
methods: {
6666
destroy() {
6767
this.http
68-
.delete(this.route('administration.categories.upload.destroy', this.$route.params))
68+
.delete(this.route('administration.categories.image.destroy', this.$route.params))
6969
.then(({ data: { message } }) => {
7070
this.fileId = null;
7171
this.toastr.success(message);

0 commit comments

Comments
 (0)