diff --git a/main/http_server/axe-os/src/app/components/edit/edit.component.html b/main/http_server/axe-os/src/app/components/edit/edit.component.html
index 071622c5..d1d4adf6 100644
--- a/main/http_server/axe-os/src/app/components/edit/edit.component.html
+++ b/main/http_server/axe-os/src/app/components/edit/edit.component.html
@@ -153,6 +153,16 @@
+
+
+
+ Make sure to reset Frequency and Voltage before clicking this button.
+
+
+
-
-
-
-
-
-
-
diff --git a/main/http_server/axe-os/src/app/components/edit/edit.component.ts b/main/http_server/axe-os/src/app/components/edit/edit.component.ts
index 886690a9..0742abd5 100644
--- a/main/http_server/axe-os/src/app/components/edit/edit.component.ts
+++ b/main/http_server/axe-os/src/app/components/edit/edit.component.ts
@@ -199,8 +199,6 @@ export class EditComponent implements OnInit {
delete form.stratumPassword;
}
- form.overheat_mode = form.overheat_mode ? 1 : 0;
-
this.systemService.updateSystem(this.uri, form)
.pipe(this.loadingService.lockUIUntilComplete())
.subscribe({
@@ -223,6 +221,11 @@ export class EditComponent implements OnInit {
this.showWifiPassword = !this.showWifiPassword;
}
+ disableOverheatMode() {
+ this.form.patchValue({ overheat_mode: 0 });
+ this.updateSystem();
+ }
+
showFallbackStratumPassword: boolean = false;
toggleFallbackStratumPasswordVisibility() {
this.showFallbackStratumPassword = !this.showFallbackStratumPassword;
diff --git a/main/http_server/axe-os/src/app/services/loading.service.ts b/main/http_server/axe-os/src/app/services/loading.service.ts
index 8af2cc6f..c5fb0b8c 100644
--- a/main/http_server/axe-os/src/app/services/loading.service.ts
+++ b/main/http_server/axe-os/src/app/services/loading.service.ts
@@ -20,7 +20,7 @@ export class LoadingService {
},
error: (err) => {
this.loading$.next(false);
- subscriber.next(err);
+ subscriber.error(err);
},
complete: () => {
this.loading$.next(false);
@@ -31,4 +31,3 @@ export class LoadingService {
}
}
}
-