client/html: fix upload error when pool input is disabled

This commit is contained in:
Shyam Sunder 2020-06-22 16:44:41 -04:00
parent b8c5b27195
commit 029c112011
1 changed files with 6 additions and 4 deletions

View File

@ -236,11 +236,13 @@ class PostEditSidebarControl extends events.EventTarget {
); );
} }
if (this._poolControl) {
this._poolControl.addEventListener("change", (e) => { this._poolControl.addEventListener("change", (e) => {
this.dispatchEvent(new CustomEvent("change")); this.dispatchEvent(new CustomEvent("change"));
this._syncExpanderTitles(); this._syncExpanderTitles();
}); });
} }
}
_syncExpanderTitles() { _syncExpanderTitles() {
this._notesExpander.title = `Notes (${this._post.notes.length})`; this._notesExpander.title = `Notes (${this._post.notes.length})`;