Commit 9168ad0b authored by janis.streib's avatar janis.streib 🦉
Browse files

ADD: create mgr2group

parent 8b3e68bc
Pipeline #112460 passed with stages
in 8 minutes and 15 seconds
......@@ -55,7 +55,7 @@
</template>
<template v-slot:head(actions)>
<b-button block variant="outline-success"
:id="'button-assign-mgr-' + group.name">
:id="'button-assign-mgr-' + group.name" @click="createMgr2Group(group.name)">
<font-awesome-icon :icon="['fas', 'plus']"/>
</b-button>
<b-tooltip :target="'button-assign-mgr-' + group.name" triggers="hover"
......@@ -64,7 +64,8 @@
</b-tooltip>
</template>
<template v-slot:cell(actions)="data">
<b-button @click="deleteItem(data.item)" variant="danger" :id="'button-unassign-mgr-' + data.item.mgr_login_name">
<b-button @click="deleteItem(data.item)" variant="danger"
:id="'button-unassign-mgr-' + data.item.mgr_login_name">
<font-awesome-icon :icon="['fas', 'unlink']"></font-awesome-icon>
</b-button>
<b-tooltip :target="'button-unassign-mgr-' + data.item.mgr_login_name" triggers="hover"
......@@ -85,6 +86,10 @@
</b-card>
</template>
</Loading>
<DBEditor modal_id="assign_user_to_group" object_function="create" object_fq_name="cntl.mgr2group"
:presets="db_editor_presets"
:non_optionals_order="['group_name', 'mgr_login_name']"
object_title="Konto-zu-Gruppen-Zuordnung"></DBEditor>
</div>
</template>
......@@ -94,13 +99,15 @@ import Loading from '@/components/Loading'
import apiutil from '@/util/apiutil'
import transactionutil from '@/util/transactionutil'
import Mgr2GroupService from '@/api-services.gen/cntl.mgr2group'
import DBEditor from '@/components/DBEditor'
export default {
name: 'Groups',
components: {Loading},
components: {DBEditor, Loading},
data() {
return {
mgrs: null,
db_editor_presets: {},
mgrs2grp: null,
bcds2grp: null,
fqdn2grp: null,
......@@ -173,6 +180,10 @@ export default {
if (!this.isMobile() && !this.$store.state.show_sidebar) {
this.$store.state.show_sidebar = true
}
},
createMgr2Group(group_name) {
this.db_editor_presets = {group_name: group_name}
this.$root.$emit('bv::show::modal', 'assign_user_to_group')
}
},
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