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

ADD: macauth cient edit

parent a7146070
......@@ -74,7 +74,7 @@
<b-button-group class="fullwidth">
<b-button variant="outline-primary"
:id="'button-edit-client-' + bcd.name + '-' + data.index"
@click="editClient">
@click="editClient(data.item)">
<font-awesome-icon :icon="['far', 'edit']"/>
</b-button>
<b-tooltip :target="'button-edit-client-' + bcd.name + '-' + data.index"
......@@ -190,13 +190,17 @@ export default {
return new Date(Date.parse(value)).toLocaleString('de-DE')
},
createClient(bcd) {
this.db_editor_function = 'create'
this.db_editor_object_function = 'create'
this.db_editor_old_data = {}
this.db_editor_presets = {'bcd_name': bcd.name}
this.$root.$emit('bv::show::modal', 'dbeditor_macauth')
},
editClient() {
alert('TODO: DBEditor edit client')
editClient(item) {
this.db_editor_object_function = 'update'
this.db_editor_old_data = item
this.db_editor_presets = item
this.db_editor_object_title = item.mac_addr + ' in BCD ' + item.bcd_name
this.$root.$emit('bv::show::modal', 'dbeditor_macauth')
},
deleteClient(item) {
let ta = transactionutil.generateDeleteElement('macauth.client', MACAuthService.deleteParamsList(), item, item.mac_addr + ' in BCD ' + item.bcd_name)
......
Supports Markdown
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