Rename $self to vm, matching vue conventions

parent 5ebe5c57
......@@ -17,20 +17,20 @@
cancelButtonText: 'Cancel',
type: 'warning'
}).then(() => {
let $self = this;
let vm = this;
axios.delete(this.deleteAction)
.then(function (response) {
if (response.data.errors === false) {
$self.$message({
vm.$message({
type: 'success',
message: response.data.message
});
$('#' + $self.rowId).remove();
$('#' + vm.rowId).remove();
}
})
.catch(function (error) {
$self.$message({
vm.$message({
type: 'error',
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