Commit 679c7207 authored by Luke Bennett's avatar Luke Bennett

Debounce url input updates

parent e5be436c
...@@ -32,7 +32,8 @@ export default class PushPull { ...@@ -32,7 +32,8 @@ export default class PushPull {
} }
registerUpdateListeners() { registerUpdateListeners() {
this.$urlInput.on('change', () => this.updateUrl()); this.debouncedUpdateUrl = _.debounce(() => this.updateUrl(), 200);
this.$urlInput.on('input', () => this.debouncedUpdateUrl());
this.$protectedBranchesInput.on('change', () => this.updateProtectedBranches()); this.$protectedBranchesInput.on('change', () => this.updateProtectedBranches());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment