Merge pull request #7360 from tchak/feat-faster-autosave
Faster autosave
This commit is contained in:
commit
11d21622f3
2 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,7 @@ export class AutosaveController extends ApplicationController {
|
|||
this.#latestPromise = Promise.resolve();
|
||||
this.onGlobal('autosave:retry', () => this.didRequestRetry());
|
||||
this.on('change', (event) => this.onInputChange(event));
|
||||
this.on('input', (event) => this.onInputChange(event));
|
||||
}
|
||||
|
||||
disconnect() {
|
||||
|
|
|
@ -70,7 +70,7 @@ module TPS
|
|||
config.ds_weekly_overview = Rails.env.production? && config.ds_env != 'staging'
|
||||
|
||||
config.ds_autosave = {
|
||||
debounce_delay: 3000,
|
||||
debounce_delay: 1000,
|
||||
status_visible_duration: 6000
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue