fix(dossier): delay submit to autosave end
This commit is contained in:
parent
5f6fb3013d
commit
de9d3501b5
2 changed files with 6 additions and 2 deletions
|
@ -8,7 +8,7 @@ export class AutosaveSubmitController extends ApplicationController {
|
|||
#buttonText?: string;
|
||||
|
||||
connect(): void {
|
||||
this.onGlobal('autosave:enqueue', () => this.didEnqueue());
|
||||
this.onGlobal('autosave:input', () => this.didInput());
|
||||
this.onGlobal('autosave:end', () => this.didSucceed());
|
||||
this.onGlobal('autosave:error', () => this.didFail());
|
||||
this.on('click', (event) => this.onClick(event));
|
||||
|
@ -23,7 +23,7 @@ export class AutosaveSubmitController extends ApplicationController {
|
|||
}
|
||||
}
|
||||
|
||||
private didEnqueue() {
|
||||
private didInput() {
|
||||
this.#isSaving = true;
|
||||
this.#shouldSubmit = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue