feat(conditional): show loader during autosave when other champs are dependent of it
This commit is contained in:
parent
81f00774af
commit
7c13449b4f
9 changed files with 34 additions and 3 deletions
|
@ -101,6 +101,12 @@ export class AutosaveController extends ApplicationController {
|
|||
isTextInputElement(target)
|
||||
) {
|
||||
this.debounce(this.enqueueAutosaveRequest, AUTOSAVE_DEBOUNCE_DELAY);
|
||||
|
||||
if (target.dataset.dependentConditions) {
|
||||
const spinner = document.createElement('div');
|
||||
spinner.classList.add('spinner', 'right');
|
||||
target.after(spinner);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue