|
|
@@ -38,6 +38,7 @@ import CopyToModal from "./CopyToModal";
|
|
|
import { ArticleType } from "../article/Article";
|
|
|
import { ChannelInfoModal } from "./ChannelInfo";
|
|
|
import TokenModal from "../article/TokenModal";
|
|
|
+import NissayaAlignerModal from "../corpus/NissayaAlignerModal";
|
|
|
|
|
|
const { Search } = Input;
|
|
|
|
|
|
@@ -90,6 +91,7 @@ const ChannelMy = ({
|
|
|
const [search, setSearch] = useState<string>();
|
|
|
const [loading, setLoading] = useState(true);
|
|
|
const [copyChannel, setCopyChannel] = useState<IChannel>();
|
|
|
+ const [nissayaOpen, setNissayaOpen] = useState(false);
|
|
|
const [copyOpen, setCopyOpen] = useState<boolean>(false);
|
|
|
const [infoOpen, setInfoOpen] = useState<boolean>(false);
|
|
|
const [statistic, setStatistic] = useState<IItem>();
|
|
|
@@ -478,7 +480,7 @@ const ChannelMy = ({
|
|
|
icon: <CopyOutlined />,
|
|
|
},
|
|
|
{
|
|
|
- key: "import",
|
|
|
+ key: "import-nissaya",
|
|
|
label: intl.formatMessage({
|
|
|
id: "buttons.import",
|
|
|
}),
|
|
|
@@ -509,6 +511,14 @@ const ChannelMy = ({
|
|
|
});
|
|
|
setCopyOpen(true);
|
|
|
break;
|
|
|
+ case "import-nissaya":
|
|
|
+ setCopyChannel({
|
|
|
+ id: node.channel.uid,
|
|
|
+ name: node.channel.title,
|
|
|
+ type: node.channel.type,
|
|
|
+ });
|
|
|
+ setNissayaOpen(true);
|
|
|
+ break;
|
|
|
case "statistic":
|
|
|
setInfoOpen(true);
|
|
|
setStatistic(node.channel);
|
|
|
@@ -548,6 +558,12 @@ const ChannelMy = ({
|
|
|
open={copyOpen}
|
|
|
onClose={() => setCopyOpen(false)}
|
|
|
/>
|
|
|
+ <NissayaAlignerModal
|
|
|
+ sentencesId={sentencesId}
|
|
|
+ channel={copyChannel}
|
|
|
+ open={nissayaOpen}
|
|
|
+ onClose={() => setNissayaOpen(false)}
|
|
|
+ />
|
|
|
<ChannelInfoModal
|
|
|
sentenceCount={sentenceCount}
|
|
|
channel={statistic}
|