Просмотр исходного кода

Merge pull request #1420 from visuddhinanda/agile

#1416
visuddhinanda 2 лет назад
Родитель
Сommit
a26d861136

+ 2 - 0
dashboard/src/components/api/Corpus.ts

@@ -132,6 +132,7 @@ export interface ISentenceDiffData {
   word_end: number;
   channel_uid: string;
   content: string;
+  editor_uid: string;
   updated_at: string;
 }
 export interface ISentenceDiffResponse {
@@ -185,6 +186,7 @@ export interface ISentenceListResponse {
 export interface ISentenceNewRequest {
   sentences: ISentenceDiffData[];
   channel?: string;
+  copy?: boolean;
 }
 export interface ISentenceNewMultiResponse {
   ok: boolean;

+ 1 - 0
dashboard/src/components/channel/ChannelSentDiff.tsx

@@ -187,6 +187,7 @@ const ChannelSentDiffWidget = ({
               {
                 sentences: submitData,
                 channel: destChannel?.id,
+                copy: true,
               }
             )
               .then((json) => {

+ 1 - 1
dashboard/src/components/general/TimeShow.tsx

@@ -142,7 +142,7 @@ const TimeShowWidget = ({
       <Text type={type}>
         <Space>
           {icon}
-          {mTitle}
+          {showLabel ? mTitle : ""}
           {passTime}
         </Space>
       </Text>