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

ADD: unassign ou members

parent fc0499dd
Pipeline #112548 passed with stages
in 12 minutes and 10 seconds
......@@ -44,6 +44,18 @@
Neuen Account zuordnen
</b-tooltip>
</template>
<template v-slot:cell(actions)="data">
<b-button-group class="d-flex">
<b-button @click="deleteMgrItem(data.item)" variant="outline-danger"
:id="'button-unassign-mgr-' + data.item.bcd_name">
<font-awesome-icon :icon="['fas', 'unlink']"></font-awesome-icon>
</b-button>
<b-tooltip :target="'button-unassign-mgr-' + data.item.bcd_name" triggers="hover"
variant="danger" placement="left">
Zuweisung aufheben
</b-tooltip>
</b-button-group>
</template>
</b-table>
</b-collapse>
</b-card>
......@@ -63,6 +75,8 @@ import OUService from '@/api-services/ou.service'
import Loading from '@/components/Loading'
import apiutil from '@/util/apiutil'
import DBEditor from '@/components/DBEditor'
import transactionutil from '@/util/transactionutil'
import Mgr2OuService from '@/api-services.gen/cntl.mgr2ou'
export default {
name: 'OE',
......@@ -122,6 +136,14 @@ export default {
assign_mgr(oe) {
this.db_editor_presets = { ou_short_name: oe }
this.$root.$emit('bv::show::modal', 'assign_user_to_oe')
},
deleteMgrItem(item) {
const ta = transactionutil.generateDeleteElement('cntl.mgr2ou', Mgr2OuService.deleteParamsList(), item, item.mgr_login_name + ' aus OE ' + item.ou_name)
this.$store.commit('addTransactionElement', ta)
this.$emit('commited', ta)
if (!this.isMobile() && !this.$store.state.show_sidebar) {
this.$store.state.show_sidebar = true
}
}
},
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