Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hellozach committed Aug 31, 2018
1 parent 4da3b84 commit 2a16204
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/assets/js/components/media-uploader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@
data.append('asset', $(e.target).find('input[name=asset]')[0].files[0]);
this.errors = null;
this.loading = true;
this.uploading = true;
axios.post('/gazette/media', data)
.then(response => {
Bus.$emit('uploaded-to-media-browser', response);
e.target.reset();
this.loading = false;
this.uploading = false;
}, error => {
this.errors = error.response.data.errors.asset;
this.loading = false;
this.uploading = false;
});
},
}
Expand Down

0 comments on commit 2a16204

Please sign in to comment.