Jelajahi Sumber

add { item: "" } in buttons.open.in.new.tab

visuddhinanda 11 bulan lalu
induk
melakukan
5f1ee3f0ee

+ 1 - 1
dashboard-v4/dashboard/src/components/article/TypeArticleReaderToolbar.tsx

@@ -95,7 +95,7 @@ const TypeArticleReaderToolbarWidget = ({
                 {
                   label: intl.formatMessage({
                     id: "buttons.open.in.new.tab",
-                  }),
+                  },{item:''}),
                   key: "open_in_tab",
                   icon: <TabIcon />,
                 },

+ 6 - 3
dashboard-v4/dashboard/src/components/discussion/DiscussionDrawer.tsx

@@ -55,9 +55,12 @@ const DiscussionDrawerWidget = ({
         extra={
           <Space>
             <Link to={`/discussion/show/${resType}/${resId}`} target="_blank">
-              {intl.formatMessage({
-                id: "buttons.open.in.new.tab",
-              })}
+              {intl.formatMessage(
+                {
+                  id: "buttons.open.in.new.tab",
+                },
+                { item: "" }
+              )}
             </Link>
             {drawerWidth === drawerMinWidth ? (
               <Button

+ 1 - 1
dashboard-v4/dashboard/src/components/general/NissayaCard.tsx

@@ -159,7 +159,7 @@ const NissayaCardWidget = ({
           <Link to={`/nissaya/ending/${term?.word}`} target="_blank">
             {intl.formatMessage({
               id: "buttons.open.in.new.tab",
-            })}
+            },{item:''})}
           </Link>
           <Button
             type="link"

+ 6 - 3
dashboard-v4/dashboard/src/components/template/Article.tsx

@@ -106,9 +106,12 @@ export const ArticleCtl = ({
 
   const OpenLink = (
     <Link to={articleLink} target="_blank">
-      {intl.formatMessage({
-        id: "buttons.open.in.new.tab",
-      })}
+      {intl.formatMessage(
+        {
+          id: "buttons.open.in.new.tab",
+        },
+        { item: "" }
+      )}
     </Link>
   );
   switch (style) {

+ 6 - 3
dashboard-v4/dashboard/src/components/template/Quote.tsx

@@ -41,9 +41,12 @@ const QuoteCtl = ({
             分栏打开
           </Button>,
           <Button type="link" size="small" icon={<SearchOutlined />}>
-            {intl.formatMessage({
-              id: "buttons.open.in.new.tab",
-            })}
+            {intl.formatMessage(
+              {
+                id: "buttons.open.in.new.tab",
+              },
+              { item: "" }
+            )}
           </Button>,
           <Button type="link" size="small" icon={<CopyOutlined />}>
             复制引用