Commit 1fd2d8e7 authored by janis.streib's avatar janis.streib 🦉
Browse files

ADD: mgr2ou

parent b51133af
......@@ -34,11 +34,23 @@
{{ mgrs[data.item.mgr_login_name].email }}
</b-link>
</template>
<template v-slot:head(actions)>
<b-button @click="assign_mgr(ou.short_name)" block variant="outline-success"
:id="'button-assign-mgr-' + ou.short_name">
<font-awesome-icon :icon="['fas', 'plus']"/>
</b-button>
<b-tooltip :target="'button-assign-mgr-' + ou.short_name" triggers="hover"
variant="success" placement="left">
Neuen Account zuordnen
</b-tooltip>
</template>
</b-table>
</b-collapse>
</b-card>
</template>
</Loading>
<DBEditor modal_id="assign_user_to_oe" object_function="create" object_fq_name="cntl.mgr2ou" :presets="db_editor_presets"
:non_optionals_order="['ou_short_name', 'mgr_login_name']"></DBEditor>
</div>
</template>
......@@ -46,10 +58,11 @@
import OUService from '@/api-services/ou.service'
import Loading from '@/components/Loading'
import apiutil from '@/util/apiutil'
import DBEditor from '@/components/DBEditor'
export default {
name: 'OE',
components: {Loading},
components: {DBEditor, Loading},
watch: {
only_own_oe: {
immediate: true,
......@@ -64,6 +77,7 @@ export default {
mgrs2ou: null,
mgrs: null,
ous: null,
db_editor_presets: {},
ou_list_fields: [
{
key: 'mgr_login_name',
......@@ -100,6 +114,10 @@ export default {
this.mgrs2ou = apiutil.dict_of_lists_by_value_of_array(res[2], 'ou_short_name')
this.mgrs = apiutil.dict_by_value_of_array(res[3], 'login_name')
this.ous = res[1]
},
assign_mgr(oe) {
this.db_editor_presets = { ou_short_name: oe }
this.$root.$emit('bv::show::modal', 'assign_user_to_oe')
}
},
async mounted() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment