Skip to content

Commit 1a0fdaa

Browse files
committed
fix: Increase background and primary color debounce time
This prevent flooding the server with requests Signed-off-by: Louis Chemineau <[email protected]>
1 parent 271552d commit 1a0fdaa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/theming/src/components/BackgroundSettings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export default {
234234
235235
debouncePickColor: debounce(function(...args) {
236236
this.pickColor(...args)
237-
}, 200),
237+
}, 1000),
238238
239239
pickFile() {
240240
const picker = getFilePickerBuilder(t('theming', 'Select a background from your files'))

apps/theming/src/components/UserPrimaryColor.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default defineComponent({
6969
},
7070
7171
debouncedOnUpdate() {
72-
return debounce(this.onUpdate, 500)
72+
return debounce(this.onUpdate, 1000)
7373
},
7474
},
7575

0 commit comments

Comments
 (0)