mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
reflect rename changes
This commit is contained in:
parent
3371bb3251
commit
2e53898aa3
4 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
|||
import Home from './views/Home'
|
||||
import Login from './views/Login'
|
||||
import { UserList, UserCreate, User, UserEdit } from './views/user'
|
||||
import { UserList, UserCreate, UserInfo, UserEdit } from './views/user'
|
||||
|
||||
const routes = [
|
||||
{ name: 'home', path: '/', component: Home },
|
||||
|
@ -27,7 +27,7 @@ const routes = [
|
|||
{
|
||||
name: 'user-info',
|
||||
path: '/users/:name',
|
||||
component: User,
|
||||
component: UserInfo,
|
||||
props: true,
|
||||
meta: {
|
||||
breadcrumb: [
|
||||
|
|
|
@ -204,11 +204,11 @@ export default {
|
|||
if (value.length > 0) data[key] = value
|
||||
}
|
||||
|
||||
// FIXME move to utils
|
||||
function arrayDiff (arr1 = [], arr2 = []) {
|
||||
return arr1.filter(item => ((arr2.indexOf(item) === -1) && (item !== '')))
|
||||
}
|
||||
|
||||
console.log(data)
|
||||
this.$store.dispatch('PUT',
|
||||
{ uri: 'users', data, param: this.user.username, storeKey: 'users_details' }
|
||||
).then(() => {
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
|
||||
<script>
|
||||
export default {
|
||||
name: 'User',
|
||||
name: 'UserInfo',
|
||||
props: {
|
||||
name: {
|
||||
type: String,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export { default as UserList } from './UserList'
|
||||
export { default as UserCreate } from './UserCreate'
|
||||
export { default as User } from './User'
|
||||
export { default as UserInfo } from './UserInfo'
|
||||
export { default as UserEdit } from './UserEdit'
|
||||
|
|
Loading…
Add table
Reference in a new issue