retry wifi connection, show canbus FW version, adjust measurement formular
This commit is contained in:
@@ -27,13 +27,7 @@ export class SubmitView {
|
||||
this.submit_status = document.getElementById("submit_status") as HTMLElement
|
||||
this.submitFormBtn.onclick = () => {
|
||||
controller.uploadConfig(this.json.textContent as string, (status: string) => {
|
||||
if (status != "OK") {
|
||||
// Show error toast (click to dismiss only)
|
||||
toast.error(status);
|
||||
} else {
|
||||
// Show info toast (auto hides after 5s, or click to dismiss sooner)
|
||||
toast.info('Config uploaded successfully');
|
||||
}
|
||||
toast.info(status);
|
||||
this.submit_status.innerHTML = status;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user