Skip to content

Commit

Permalink
Using ES6 syntax everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 11, 2017
1 parent 34e1835 commit 840034a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Modules/Core/Assets/js/components/DeleteComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}).then(() => {
let vm = this;
axios.delete(this.scope.row.urls.delete_url)
.then(function (response) {
.then(response => {
if (response.data.errors === false) {
vm.$message({
type: 'success',
Expand All @@ -29,7 +29,7 @@
vm.rows.splice(vm.scope.$index, 1);
}
})
.catch(function (error) {
.catch(error => {
vm.$message({
type: 'error',
message: response.data.message
Expand Down
8 changes: 4 additions & 4 deletions Modules/Page/Assets/js/components/PageTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@
}
},
methods: {
fetchData: function () {
fetchData() {
let vm = this;
axios.get(route('api.page.page.index'))
.then(function (response) {
.then(response => {
vm.data = response.data.data;
})
.catch(function (response) {
.catch(response => {
});
},
goToEdit: function (scope) {
goToEdit(scope) {
window.location = scope.row.urls.edit_url;
}
},
Expand Down

0 comments on commit 840034a

Please sign in to comment.