Show groups
This commit is contained in:
parent
7b18e10575
commit
40b0e148e8
|
@ -9,7 +9,8 @@
|
||||||
{{ user.displayName }} <br />
|
{{ user.displayName }} <br />
|
||||||
<small>{{ user.sAMAccountName }}</small>
|
<small>{{ user.sAMAccountName }}</small>
|
||||||
<DistinguishedNameBreadcrumb :dn="user.dn" />
|
<DistinguishedNameBreadcrumb :dn="user.dn" />
|
||||||
<RoleBadge
|
|
||||||
|
<role-badge
|
||||||
v-for="role in user.roles"
|
v-for="role in user.roles"
|
||||||
:key="role"
|
:key="role"
|
||||||
class="mr-1"
|
class="mr-1"
|
||||||
|
@ -26,7 +27,11 @@ import DistinguishedNameBreadcrumb from './ui/DistinguishedNameBreadcrumb.vue'
|
||||||
import RoleBadge from './ui/RoleBadge.vue'
|
import RoleBadge from './ui/RoleBadge.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { Avatar, DistinguishedNameBreadcrumb, RoleBadge },
|
components: {
|
||||||
|
Avatar,
|
||||||
|
DistinguishedNameBreadcrumb,
|
||||||
|
RoleBadge
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
user: {
|
user: {
|
||||||
type: Object,
|
type: Object,
|
||||||
|
|
19
web/src/components/ui/GroupBadge.vue
Normal file
19
web/src/components/ui/GroupBadge.vue
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
<template>
|
||||||
|
<v-chip class="ma-1" small outlined>
|
||||||
|
<v-icon left x-small>mdi-account-group</v-icon>
|
||||||
|
{{ group }}
|
||||||
|
</v-chip>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
group: {
|
||||||
|
type: String,
|
||||||
|
required: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style></style>
|
|
@ -14,8 +14,21 @@
|
||||||
<v-card-title class="font-weight-regular">
|
<v-card-title class="font-weight-regular">
|
||||||
<UserTitle :user="user" />
|
<UserTitle :user="user" />
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
|
<v-divider />
|
||||||
|
<v-card-title class="title font-weight-regular"
|
||||||
|
>Grupos efetivos:</v-card-title
|
||||||
|
>
|
||||||
|
<v-card-text>
|
||||||
|
<group-badge
|
||||||
|
v-for="(group, i) in user.groups"
|
||||||
|
:key="'a' + i"
|
||||||
|
:group="group.name"
|
||||||
|
/>
|
||||||
|
</v-card-text>
|
||||||
|
|
||||||
<v-divider />
|
<v-divider />
|
||||||
<v-card-text v-if="user">
|
<v-card-text v-if="user">
|
||||||
|
User dump:
|
||||||
<vue-json-pretty
|
<vue-json-pretty
|
||||||
:data="user"
|
:data="user"
|
||||||
:show-double-quotes="false"
|
:show-double-quotes="false"
|
||||||
|
@ -34,13 +47,14 @@
|
||||||
import UserSelect from '@/components/UserSelect'
|
import UserSelect from '@/components/UserSelect'
|
||||||
import UserTitle from '@/components/UserTitle.vue'
|
import UserTitle from '@/components/UserTitle.vue'
|
||||||
import VueJsonPretty from 'vue-json-pretty'
|
import VueJsonPretty from 'vue-json-pretty'
|
||||||
|
import GroupBadge from '@/components/ui/GroupBadge.vue'
|
||||||
import gql from 'graphql-tag'
|
import gql from 'graphql-tag'
|
||||||
|
|
||||||
import 'vue-json-pretty/lib/styles.css'
|
import 'vue-json-pretty/lib/styles.css'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'UserInfo',
|
name: 'UserInfo',
|
||||||
components: { UserSelect, VueJsonPretty, UserTitle },
|
components: { UserSelect, VueJsonPretty, UserTitle, GroupBadge },
|
||||||
data: () => ({
|
data: () => ({
|
||||||
username: null
|
username: null
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user