diff --git a/core/frontend/src/views/SettingsView.vue b/core/frontend/src/views/SettingsView.vue index 3534c4b857..a2a62f37f7 100644 --- a/core/frontend/src/views/SettingsView.vue +++ b/core/frontend/src/views/SettingsView.vue @@ -461,7 +461,7 @@ @confirm="onConfirmClearLogs" /> - + @@ -474,8 +474,11 @@ - - Close + + + mdi-restart-alert + + Reboot @@ -494,6 +497,8 @@ import Notifier from '@/libs/notifier' import settings from '@/libs/settings' import { OneMoreTime } from '@/one-more-time' import bag from '@/store/bag' +import commander from '@/store/commander' +import { ShutdownType } from '@/types/commander' import { commander_service } from '@/types/frontend_services' import back_axios from '@/utils/api' import { prettifySize } from '@/utils/helper_functions' @@ -666,6 +671,10 @@ export default Vue.extend({ this.operation_in_progress = false }, + reboot_system(): void { + commander.shutdown(ShutdownType.Reboot) + }, + async remove_service_log_files(): Promise { this.deletion_log_abort_controller = new AbortController() this.deletion_in_progress = true