Skip to content
Snippets Groups Projects
Commit 235d80a0 authored by !! Julian Keck (old Account; do not use) !!'s avatar !! Julian Keck (old Account; do not use) !! :ghost:
Browse files

FIX prevent opening modal multiple times for svc-accounts

parent 46cd2a99
No related branches found
No related tags found
No related merge requests found
......@@ -195,7 +195,7 @@
v-for="sub_account in mgr_sub_accounts" v-bind:key="sub_account.login_name + '_sub_uid'"
></SVCAccountCard>
</b-collapse>
<APIObjectDBEditor modal_id="assign_to_group" :object_function="db_editor_function"
<APIObjectDBEditor :modal_id="'assign_to_group_' + account.gpk" :object_function="db_editor_function"
:object_fq_name="db_editor_object_fq_name"
:presets="db_editor_presets"
:non_optionals_order="db_editor_non_optionals_order"
......@@ -291,7 +291,7 @@ export default {
} else {
this.db_editor_non_optionals_order = ['sub_id', 'description', 'allow_data_manipulation']
}
this.$root.$emit('bv::show::modal', 'assign_to_group')
this.$root.$emit('bv::show::modal', 'assign_to_group_' + this.account.gpk)
},
createMgr2Group() {
this.db_editor_function = 'create'
......@@ -299,7 +299,7 @@ export default {
this.db_editor_presets = {mgr_login_name: this.account.login_name}
this.db_editor_object_fq_name = 'cntl.mgr2group'
this.db_editor_non_optionals_order = this.default_order
this.$root.$emit('bv::show::modal', 'assign_to_group')
this.$root.$emit('bv::show::modal', 'assign_to_group_' + this.account.gpk)
},
createMgr2OU() {
this.db_editor_function = 'create'
......@@ -307,7 +307,7 @@ export default {
this.db_editor_presets = {mgr_login_name: this.account.login_name}
this.db_editor_object_fq_name = 'cntl.mgr2ou'
this.db_editor_non_optionals_order = ['ou_short_name'].concat(this.default_order)
this.$root.$emit('bv::show::modal', 'assign_to_group')
this.$root.$emit('bv::show::modal', 'assign_to_group_' + this.account.gpk)
},
},
computed: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment