Commit 241d7160 authored by Janis Streib's avatar Janis Streib 🦉

FIX: evlog: accept "return" to refresh list with new parameter

parent 68b72c0c
Pipeline #139022 passed with stages
in 7 minutes and 32 seconds
<template>
<b-modal size="xl" ok-title="Schließen" :title="'Eventlog: ' + title" :ok-only="true" :id="modal_id"
@show="fetchData()">
<b-input-group prepend="# Transaktionen">
<b-form-input type="number" v-model="top_n"/>
<b-input-group-append>
<b-button variant="success" @click="fetchData">Aktualisieren</b-button>
</b-input-group-append>
</b-input-group>
<b-form @submit="fetchData">
<b-input-group prepend="# Transaktionen">
<b-form-input type="number" v-model="top_n"/>
<b-input-group-append>
<b-button type="submit" variant="success" @click="fetchData">Aktualisieren</b-button>
</b-input-group-append>
</b-input-group>
</b-form>
<Loading :data="[records]">
<b-table :responsive="true" striped :items="records" :fields="table_fields">
<template v-slot:cell(type)="data">
......@@ -70,7 +72,10 @@ export default {
}
},
methods: {
async fetchData() {
async fetchData(ev) {
if (ev) {
ev.preventDefault()
}
this.records = null
const res = await EVLogService.getByFK(this.$store.state.netdb_axios_config, this.ref_obj_fq, this.refobj_id_field, this.refobj_id_value, parseInt(this.top_n))
this.records = res.data[1]
......
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