Fix double api call in edit window

This commit is contained in:
2023-05-25 14:47:36 +02:00
parent 794a38da19
commit fff705bc2a
7 changed files with 49 additions and 24 deletions

View File

@@ -317,16 +317,24 @@ onDestroy(() => {
<thead>
<tr>
<td>
<button on:click={() => { getStats('query_name') }}>Query</button>
<button on:click={() => { getStats('query_name') }}>
Query
</button>
</td>
<td>
<button style="cursor: pointer;" on:click={() => { getStats('calls') }}>Calls</button>
<button style="cursor: pointer;" on:click={() => { getStats('calls') }}>
Calls
</button>
</td>
<td>
<button style="cursor: pointer;" on:click={() => { getStats('average_duration') }}>Avg dur</button>
<button style="cursor: pointer;" on:click={() => { getStats('average_duration') }}>
Avg
</button>
</td>
<td>
<button style="cursor: pointer;" on:click={() => { getStats('total_duration') }}>Total dur</button>
<button style="cursor: pointer;" on:click={() => { getStats('total_duration') }}>
Total
</button>
</td>
<td>Callers</td>
</tr>