From f2d7376d9fee39049ef6cb72e20dfb2fcf74d4ac Mon Sep 17 00:00:00 2001 From: exialin Date: Sun, 29 Oct 2023 00:15:38 +0800 Subject: [PATCH] fix: correct the tooltip of view type in the Attachments page (#4785) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind bug #### What this PR does / why we need it: console附件页面List Mode和Grid Mode的tooltip写反了: image #### Which issue(s) this PR fixes: Fixes # #### Special notes for your reviewer: #### Does this PR introduce a user-facing change? ```release-note 修复附件管理布局切换按钮的提示文字。 ``` --- console/src/modules/contents/attachments/AttachmentList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/console/src/modules/contents/attachments/AttachmentList.vue b/console/src/modules/contents/attachments/AttachmentList.vue index c4842a39c..8372c1b71 100644 --- a/console/src/modules/contents/attachments/AttachmentList.vue +++ b/console/src/modules/contents/attachments/AttachmentList.vue @@ -178,12 +178,12 @@ const onUploadModalClose = () => { const viewTypes = [ { name: "list", - tooltip: t("core.attachment.filters.view_type.items.grid"), + tooltip: t("core.attachment.filters.view_type.items.list"), icon: IconList, }, { name: "grid", - tooltip: t("core.attachment.filters.view_type.items.list"), + tooltip: t("core.attachment.filters.view_type.items.grid"), icon: IconGrid, }, ];