diff --git a/backend/app/service/dashboard.go b/backend/app/service/dashboard.go index 532281be7..0a37ecfda 100644 --- a/backend/app/service/dashboard.go +++ b/backend/app/service/dashboard.go @@ -31,7 +31,7 @@ func NewIDashboardService() IDashboardService { } func (u *DashboardService) Restart(operation string) error { - if operation != "panel" && operation != "system" { + if operation != "1panel" && operation != "system" { return fmt.Errorf("handle restart operation %s failed, err: nonsupport such operation", operation) } itemCmd := fmt.Sprintf("%s 1pctl restart", cmd.SudoHandleCmd()) diff --git a/frontend/src/components/confirm-dialog/index.vue b/frontend/src/components/confirm-dialog/index.vue index 5fcd56908..5f450945f 100644 --- a/frontend/src/components/confirm-dialog/index.vue +++ b/frontend/src/components/confirm-dialog/index.vue @@ -6,8 +6,8 @@
- {{ operationInfo }} -
+ {{ operationInfo }} +
{{ $t('commons.msg.operateConfirm') }} '{{ submitInputInfo }}'
diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 4d4825e04..0678cbe4b 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -286,9 +286,6 @@ const message = { home: { restart_1panel: 'Restart Panel', restart_system: 'Restart Server', - panel: '1Panel', - system: '1Panel Server', - restartHelper: 'About to restart {0}, do you want to continue?', operationSuccess: 'Operation successful! Restarting, please wait...', overview: 'Overview', entranceHelper: diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 1b1e2a41d..87d25a2ec 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -284,9 +284,6 @@ const message = { home: { restart_1panel: '重啟面板', restart_system: '重啟服務器', - panel: '1Panel 面板', - system: '1Panel 服務器', - restartHelper: '即將重新啟動 {0},是否繼續?', operationSuccess: '操作成功!正在重啟,請稍候...', overview: '概覽', entranceHelper: '設置安全入口有利於提高系統的安全性,如有需要,前往 面板設置-安全 中,啟用安全入口', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 10d50d1f6..4e7a39daf 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -284,9 +284,6 @@ const message = { home: { restart_1panel: '重启面板', restart_system: '重启服务器', - panel: '1Panel 面板', - system: '1Panel 服务器', - restartHelper: '即将重新启动 {0},是否继续?', operationSuccess: '操作成功!正在重启,请稍候...', overview: '概览', entranceHelper: '设置安全入口有利于提高系统的安全性,如有需要,前往 面板设置-安全 中,启用安全入口', diff --git a/frontend/src/views/home/index.vue b/frontend/src/views/home/index.vue index 976e8b3bb..f0a108b8e 100644 --- a/frontend/src/views/home/index.vue +++ b/frontend/src/views/home/index.vue @@ -10,11 +10,11 @@ >