Scroll confirm and progress to view when adding a set through the socket

This commit is contained in:
Gregoo 2025-02-03 16:35:09 +01:00
parent 187afdc2cf
commit ec7fab2a7a

View File

@ -163,6 +163,10 @@ class BrickSetSocket extends BrickSocket {
this.spinner(true); this.spinner(true);
if (this.html_progress_bar) {
this.html_progress_bar.scrollIntoView();
}
this.socket.emit(this.messages.IMPORT_SET, { this.socket.emit(this.messages.IMPORT_SET, {
set: (set !== undefined) ? set : this.html_input.value, set: (set !== undefined) ? set : this.html_input.value,
owners: owners, owners: owners,
@ -240,6 +244,8 @@ class BrickSetSocket extends BrickSocket {
})(this, data["set"]); })(this, data["set"]);
this.html_card_confirm.addEventListener("click", this.confirm_listener); this.html_card_confirm.addEventListener("click", this.confirm_listener);
this.html_card_confirm.scrollIntoView();
} }
} }
} }