Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 2d1691f

Browse files
committed
change create-feature's request to use Vue.http instead of this.$http
1 parent 1325c54 commit 2d1691f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/views/components/create-feature.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
};
137137
138138
// create the feature
139-
this.$http.post('features', data).then(
139+
Vue.http.post('features', data).then(
140140
// success
141141
function (response) {
142142
this.closeCreateFeatureForm();
@@ -147,7 +147,7 @@ function (response) {
147147
Toast.show('Feature '+feature.title+' created successfully');
148148
149149
this.resetForm();
150-
},
150+
}.bind(this),
151151
// error
152152
function (response) {
153153
console.log('Error creating the feature', response.status);

0 commit comments

Comments
 (0)