js fixes & lint

This commit is contained in:
Milos Stojanovic
2019-06-25 16:22:11 +02:00
parent b08d105cef
commit 145d167fa1
13 changed files with 28 additions and 26 deletions

View File

@@ -59,6 +59,7 @@ import UserEdit from './partials/UserEdit'
import Menu from './partials/Menu'
import Pagination from './partials/Pagination'
import api from '../api/api'
import _ from 'lodash'
export default {
name: 'Users',
@@ -90,7 +91,7 @@ export default {
api.deleteUser({
username: user.username
})
.then(res => {
.then(() => {
this.users = _.reject(this.users, u => u.username == user.username)
this.$toast.open({
message: this.lang('Deleted'),