Merge pull request #7360 from tchak/feat-faster-autosave

Faster autosave
This commit is contained in:
Paul Chavard 2022-05-24 15:12:06 +02:00 committed by GitHub
commit 11d21622f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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() {

View file

@ -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
}