|
@@ -13,6 +13,8 @@ interface IWidget {
|
|
|
channelId?: string | null;
|
|
channelId?: string | null;
|
|
|
anthologyId?: string | null;
|
|
anthologyId?: string | null;
|
|
|
active?: boolean;
|
|
active?: boolean;
|
|
|
|
|
+ hideInteractive?: boolean;
|
|
|
|
|
+ hideTitle?: boolean;
|
|
|
onArticleChange?: Function;
|
|
onArticleChange?: Function;
|
|
|
onArticleEdit?: Function;
|
|
onArticleEdit?: Function;
|
|
|
onFinal?: Function;
|
|
onFinal?: Function;
|
|
@@ -26,6 +28,8 @@ const TypeArticleWidget = ({
|
|
|
anthologyId,
|
|
anthologyId,
|
|
|
mode = "read",
|
|
mode = "read",
|
|
|
active = false,
|
|
active = false,
|
|
|
|
|
+ hideInteractive = false,
|
|
|
|
|
+ hideTitle = false,
|
|
|
onArticleChange,
|
|
onArticleChange,
|
|
|
onFinal,
|
|
onFinal,
|
|
|
onLoad,
|
|
onLoad,
|
|
@@ -65,6 +69,8 @@ const TypeArticleWidget = ({
|
|
|
anthologyId={anthologyId}
|
|
anthologyId={anthologyId}
|
|
|
mode={mode}
|
|
mode={mode}
|
|
|
active={active}
|
|
active={active}
|
|
|
|
|
+ hideInteractive={hideInteractive}
|
|
|
|
|
+ hideTitle={hideTitle}
|
|
|
onArticleChange={(type: string, id: string, target: string) => {
|
|
onArticleChange={(type: string, id: string, target: string) => {
|
|
|
if (typeof onArticleChange !== "undefined") {
|
|
if (typeof onArticleChange !== "undefined") {
|
|
|
onArticleChange(type, id, target);
|
|
onArticleChange(type, id, target);
|