summaryrefslogtreecommitdiff
path: root/packages/frontend/src/pages/api-console.vue
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2025-02-26 11:55:52 +0000
committerdakkar <dakkar@thenautilus.net>2025-02-26 12:14:57 +0000
commit71d842421df88917708ded0291a61e63c76a2dc2 (patch)
treeb61e70c38322cb957fc95f821a1c9f251ba33213 /packages/frontend/src/pages/api-console.vue
parentmerge: maybe better db/meili container images to start with - fixes #942 (!919) (diff)
downloadsharkey-71d842421df88917708ded0291a61e63c76a2dc2.tar.gz
sharkey-71d842421df88917708ded0291a61e63c76a2dc2.tar.bz2
sharkey-71d842421df88917708ded0291a61e63c76a2dc2.zip
debounce a bunch of `MkInput`
these are all the places I could find that (directly or indirectly) perform API calls when the input is changed; telling the component to "debounce" means that the API will be called at most once per second
Diffstat (limited to 'packages/frontend/src/pages/api-console.vue')
-rw-r--r--packages/frontend/src/pages/api-console.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/pages/api-console.vue b/packages/frontend/src/pages/api-console.vue
index 30f12a8fb3..1e3bb0de6b 100644
--- a/packages/frontend/src/pages/api-console.vue
+++ b/packages/frontend/src/pages/api-console.vue
@@ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkSpacer :contentMax="700">
<div class="_gaps_m">
<div class="_gaps_m">
- <MkInput v-model="endpoint" :datalist="endpoints" @update:modelValue="onEndpointChange()">
+ <MkInput v-model="endpoint" :datalist="endpoints" debounce @update:modelValue="onEndpointChange()">
<template #label>Endpoint</template>
</MkInput>
<MkTextarea v-model="body" code>