visuddhinanda пре 1 година
родитељ
комит
c99334119c
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      dashboard/src/components/article/ArticleView.tsx

+ 3 - 1
dashboard/src/components/article/ArticleView.tsx

@@ -3,7 +3,7 @@ import { Typography, Divider, Skeleton, Space } from "antd";
 import MdView from "../template/MdView";
 import MdView from "../template/MdView";
 import TocPath, { ITocPathNode } from "../corpus/TocPath";
 import TocPath, { ITocPathNode } from "../corpus/TocPath";
 import PaliChapterChannelList from "../corpus/PaliChapterChannelList";
 import PaliChapterChannelList from "../corpus/PaliChapterChannelList";
-import { ArticleType } from "./Article";
+import { ArticleMode, ArticleType } from "./Article";
 import VisibleObserver from "../general/VisibleObserver";
 import VisibleObserver from "../general/VisibleObserver";
 import { IStudio } from "../auth/Studio";
 import { IStudio } from "../auth/Studio";
 
 
@@ -21,6 +21,7 @@ export interface IWidgetArticleData {
   content?: string;
   content?: string;
   html?: string[];
   html?: string[];
   path?: ITocPathNode[];
   path?: ITocPathNode[];
+  mode?: ArticleMode | null;
   created_at?: string;
   created_at?: string;
   updated_at?: string;
   updated_at?: string;
   owner?: IStudio;
   owner?: IStudio;
@@ -50,6 +51,7 @@ const ArticleViewWidget = ({
   articleId,
   articleId,
   anthology,
   anthology,
   hideTitle,
   hideTitle,
+  mode = "read",
   onEnd,
   onEnd,
   remains,
   remains,
   onPathChange,
   onPathChange,