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

Commit 35f95f1

Browse files
committed
change create-job's request to use Vue.http instead of this.$http
1 parent 2d1691f commit 35f95f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
};
103103
104104
// create the job
105-
this.$http.post('jobs', data).then(
105+
Vue.http.post('jobs', data).then(
106106
// success
107107
function (response) {
108108
this.closeCreateJobForm();
@@ -111,13 +111,13 @@ function (response) {
111111
Toast.show('Job '+job.title+' created successfully');
112112
113113
// update the domains list when a new domain is added
114-
if (this.$get('isNewDomain')) {
114+
if (this.isNewDomain) {
115115
// reload domains when it's a new one that's been created
116116
window.DomainsStore.load();
117117
}
118118
119119
this.resetForm();
120-
},
120+
}.bind(this),
121121
// error
122122
function (response) {
123123
console.log('Error creating the job', response.status);

0 commit comments

Comments
 (0)