Kaynağa Gözat

add channelId

visuddhinanda 2 yıl önce
ebeveyn
işleme
7c7a9e6c17

+ 4 - 1
dashboard/src/components/template/Wbw/WbwWord.tsx

@@ -101,6 +101,7 @@ export interface IWbwFields {
 export type TWbwDisplayMode = "block" | "inline" | "list";
 interface IWidget {
   data: IWbw;
+  channelId: string;
   display?: TWbwDisplayMode;
   fields?: IWbwFields;
   mode?: ArticleMode;
@@ -110,7 +111,8 @@ interface IWidget {
 }
 const WbwWordWidget = ({
   data,
-  display = "block",
+  channelId,
+  display,
   mode = "edit",
   fields = {
     real: false,
@@ -237,6 +239,7 @@ const WbwWordWidget = ({
         <WbwPali
           key="pali"
           data={wordData}
+          channelId={channelId}
           mode={mode}
           display={display}
           onSave={(e: IWbw, isPublish: boolean) => {

+ 1 - 0
dashboard/src/components/template/WbwSent.tsx

@@ -425,6 +425,7 @@ export const WbwSentCtl = ({
     return (
       <WbwWord
         data={item}
+        channelId={channelId}
         key={id}
         mode={displayMode}
         display={wbwMode}