Procházet zdrojové kódy

add lang?: string;

visuddhinanda před 2 roky
rodič
revize
6a1091fe1d

+ 2 - 1
dashboard/src/components/channel/ChannelSelect.tsx

@@ -7,6 +7,7 @@ import { IApiResponseChannelList } from "../api/Channel";
 interface IOption {
 interface IOption {
   value: string;
   value: string;
   label: string;
   label: string;
+  lang?: string;
 }
 }
 
 
 interface IWidget {
 interface IWidget {
@@ -63,7 +64,7 @@ const ChannelSelectWidget = ({
               children: json.data.rows
               children: json.data.rows
                 .filter((value) => value.studio.id === key)
                 .filter((value) => value.studio.id === key)
                 .map((item) => {
                 .map((item) => {
-                  return { value: item.uid, label: item.name };
+                  return { value: item.uid, label: item.name, lang: item.lang };
                 }),
                 }),
             };
             };
             channels.push(node);
             channels.push(node);