Rename $self to vm, matching vue conventions

parent 5ebe5c57
...@@ -17,20 +17,20 @@ ...@@ -17,20 +17,20 @@
cancelButtonText: 'Cancel', cancelButtonText: 'Cancel',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
let $self = this; let vm = this;
axios.delete(this.deleteAction) axios.delete(this.deleteAction)
.then(function (response) { .then(function (response) {
if (response.data.errors === false) { if (response.data.errors === false) {
$self.$message({ vm.$message({
type: 'success', type: 'success',
message: response.data.message message: response.data.message
}); });
$('#' + $self.rowId).remove(); $('#' + vm.rowId).remove();
} }
}) })
.catch(function (error) { .catch(function (error) {
$self.$message({ vm.$message({
type: 'error', type: 'error',
message: response.data.message message: response.data.message
}); });
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment