Kaynağa Gözat

add button open.in.library

visuddhinanda 4 gün önce
ebeveyn
işleme
db364eb316

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

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