diff --git a/client/components/admin/admin-groups-edit.vue b/client/components/admin/admin-groups-edit.vue index b360d1f7..83ed5f9c 100644 --- a/client/components/admin/admin-groups-edit.vue +++ b/client/components/admin/admin-groups-edit.vue @@ -78,7 +78,7 @@ v-tab-item(key='users', :transition='false', :reverse-transition='false') v-card v-card-title.pb-0 - v-btn(color='primary') + v-btn(color='primary', @click='assignUser') v-icon(left) assignment_ind | Assign User v-data-table( @@ -106,17 +106,21 @@ v-alert.ma-3(icon='warning', :value='true', outline) No users to display. .text-xs-center.py-2(v-if='users.length > 15') v-pagination(v-model='pagination.page', :length='pages') + + user-search(v-model='searchUserDialog') diff --git a/client/graph/common-users-query-search.gql b/client/graph/common-users-query-search.gql new file mode 100644 index 00000000..fb317882 --- /dev/null +++ b/client/graph/common-users-query-search.gql @@ -0,0 +1,9 @@ +query ($query: String!) { + users { + search(query:$query) { + id + name + email + } + } +}