diff options
author | Louis Chemineau <louis@chmn.me> | 2025-01-28 14:34:00 +0100 |
---|---|---|
committer | Louis <louis@chmn.me> | 2025-01-29 10:34:21 +0100 |
commit | 1a0fdaa01ba387eb6bdc387a736cf1f73b5b5f6e (patch) | |
tree | 170b717f4802d94529f4ba2622baf555fa33f0f6 /apps/theming/src | |
parent | 271552d70d2f649f0e5b503d24f85a64b1c08073 (diff) | |
download | nextcloud-server-1a0fdaa01ba387eb6bdc387a736cf1f73b5b5f6e.tar.gz nextcloud-server-1a0fdaa01ba387eb6bdc387a736cf1f73b5b5f6e.zip |
fix: Increase background and primary color debounce time
This prevent flooding the server with requests
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'apps/theming/src')
-rw-r--r-- | apps/theming/src/components/BackgroundSettings.vue | 2 | ||||
-rw-r--r-- | apps/theming/src/components/UserPrimaryColor.vue | 2 |
2 files changed, 2 insertions, 2 deletions
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) }, }, |