mirror of
https://github.com/filegator/filegator.git
synced 2025-08-08 14:56:28 +02:00
js fixes & lint
This commit is contained in:
@@ -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'),
|
||||
|
Reference in New Issue
Block a user