From 1a0fdaa01ba387eb6bdc387a736cf1f73b5b5f6e Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Tue, 28 Jan 2025 14:34:00 +0100 Subject: fix: Increase background and primary color debounce time This prevent flooding the server with requests Signed-off-by: Louis Chemineau --- apps/theming/src/components/BackgroundSettings.vue | 2 +- apps/theming/src/components/UserPrimaryColor.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/theming/src') diff --git a/apps/theming/src/components/BackgroundSettings.vue b/apps/theming/src/components/BackgroundSettings.vue index 9cddc60d30e..7dd7077baa0 100644 --- a/apps/theming/src/components/BackgroundSettings.vue +++ b/apps/theming/src/components/BackgroundSettings.vue @@ -234,7 +234,7 @@ export default { debouncePickColor: debounce(function(...args) { this.pickColor(...args) - }, 200), + }, 1000), pickFile() { const picker = getFilePickerBuilder(t('theming', 'Select a background from your files')) diff --git a/apps/theming/src/components/UserPrimaryColor.vue b/apps/theming/src/components/UserPrimaryColor.vue index ce39f449ceb..a1e843233c4 100644 --- a/apps/theming/src/components/UserPrimaryColor.vue +++ b/apps/theming/src/components/UserPrimaryColor.vue @@ -69,7 +69,7 @@ export default defineComponent({ }, debouncedOnUpdate() { - return debounce(this.onUpdate, 500) + return debounce(this.onUpdate, 1000) }, }, -- cgit v1.2.3