diff --git a/RELEASE_NOTES.MD b/RELEASE_NOTES.MD index f3e5dd04..6bc64a70 100644 --- a/RELEASE_NOTES.MD +++ b/RELEASE_NOTES.MD @@ -7,6 +7,7 @@ Chores Fixes - Delete files on printer details (sidenav) should be protected by a confirmation dialog. +- Emergency commands: server restart does not work - broken button removed ## Client 25/12/2024 1.8.7 diff --git a/src/backend/server-private.service.ts b/src/backend/server-private.service.ts index 150974b3..ea800cb4 100644 --- a/src/backend/server-private.service.ts +++ b/src/backend/server-private.service.ts @@ -5,12 +5,6 @@ import { downloadFileByBlob } from "@/utils/download-file.util"; import { getHttpClient } from "@/shared/http-client"; export class ServerPrivateService extends BaseService { - public static async restartServer() { - const path = ServerApi.serverRestartCommandRoute; - - return await this.post(path); - } - public static async downloadYamlExport(input: ExportYamlModel) { const client = await getHttpClient(); const response = await client.request({ diff --git a/src/backend/server.api.ts b/src/backend/server.api.ts index f2fef210..27e87bdb 100644 --- a/src/backend/server.api.ts +++ b/src/backend/server.api.ts @@ -51,7 +51,6 @@ export class ServerApi { static updateExperimentalClientSupportRoute = `${ServerApi.settingsRoute}/experimental-client-support`; static serverPrivateRoute = `${ServerApi.base}/server`; - static serverRestartCommandRoute = `${ServerApi.serverPrivateRoute}/restart`; static pluginRoute = `${ServerApi.base}/plugin`; static pluginFirmwareUpdateRoute = `${ServerApi.pluginRoute}/firmware-update`; diff --git a/src/components/Settings/EmergencyCommands.vue b/src/components/Settings/EmergencyCommands.vue index 905e9833..3f652a28 100644 --- a/src/components/Settings/EmergencyCommands.vue +++ b/src/components/Settings/EmergencyCommands.vue @@ -6,20 +6,6 @@ Emergency Commands to rectify problematic situations - - - - Server commands - - Restart the server to resolve any active issues - - - - Restart server - - - - @@ -157,7 +143,6 @@ import { import { Bar } from "vue-chartjs"; import { IdType } from "@/utils/id.type"; import { OctoPrintSettingsDto } from "@/backend/dto/octoprint-settings.dto"; -import { sleep } from "@/utils/time.utils"; import SettingsToolbar from "@/components/Settings/Shared/SettingsToolbar.vue"; import { settingsPage } from "@/components/Settings/Shared/setting.constants"; import SettingSection from "@/components/Settings/Shared/SettingSection.vue"; @@ -267,16 +252,6 @@ async function clickFetchNameState() { } } -async function restartServer() { - isLoading.value = true; - try { - await ServerPrivateService.restartServer(); - isLoading.value = false; - } finally { - isLoading.value = false; - } -} - async function batchToggleEnabled(enabled: boolean) { if (!confirm("Are you sure you want to toggle all printers?")) { return;