visuddhinanda 3 дней назад
Родитель
Сommit
db364eb316
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      dashboard-v6/src/components/channel/ChannelMy.tsx

+ 13 - 0
dashboard-v6/src/components/channel/ChannelMy.tsx

@@ -300,6 +300,12 @@ const ChannelMy = ({
                       }),
                       icon: <InfoCircleOutlined />,
                     },
+                    {
+                      key: "library",
+                      label: intl.formatMessage({
+                        id: "buttons.open.in.library",
+                      }),
+                    },
                   ],
                   onClick: (e) => {
                     const ch: IChannel = {
@@ -328,6 +334,13 @@ const ChannelMy = ({
                         });
                         setTokenOpen(true);
                         break;
+                      case "library":
+                        window.open(
+                          import.meta.env.VITE_APP_API_SERVER +
+                            `/library/tipitaka?${ch.id}`,
+                          "_blank"
+                        );
+                        break;
                     }
                   },
                 }}