From fb556d6149f409b1e6ba85553b0c23979a5314ea Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Mon, 13 Nov 2023 15:02:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A6=82=E8=A7=88=E9=A1=B5=E9=87=8D?= =?UTF-8?q?=E5=90=AF=E6=8C=89=E9=92=AE=E4=BC=98=E5=8C=96=20(#2926)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #2921 --- backend/app/service/dashboard.go | 2 +- .../src/components/confirm-dialog/index.vue | 4 +-- frontend/src/lang/modules/en.ts | 3 -- frontend/src/lang/modules/tw.ts | 3 -- frontend/src/lang/modules/zh.ts | 3 -- frontend/src/views/home/index.vue | 36 ++++++++++--------- 6 files changed, 23 insertions(+), 28 deletions(-) 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 @@