diff --git a/src/components/UnsubmittedVideoListItem.tsx b/src/components/UnsubmittedVideoListItem.tsx index ab00fa83..fec08dc9 100644 --- a/src/components/UnsubmittedVideoListItem.tsx +++ b/src/components/UnsubmittedVideoListItem.tsx @@ -1,6 +1,7 @@ import * as React from "react"; import Config from "../config"; +import { exportTimes } from "../utils/exporter"; export interface UnsubmittedVideosListItemProps { videoID: string; @@ -40,6 +41,12 @@ class UnsubmittedVideoListItem extends React.Component +
+ {chrome.i18n.getMessage("exportSegments")} +
+ {" "}
@@ -55,10 +62,20 @@ class UnsubmittedVideoListItem extends React.Component { + alert(chrome.i18n.getMessage("CopiedExclamation")); + }) + .catch(() => { + alert(chrome.i18n.getMessage("copyDebugInformationFailed")); + }); + } } export default UnsubmittedVideoListItem; diff --git a/src/components/UnsubmittedVideosComponent.tsx b/src/components/UnsubmittedVideosComponent.tsx index 04542adc..ee1f70f2 100644 --- a/src/components/UnsubmittedVideosComponent.tsx +++ b/src/components/UnsubmittedVideosComponent.tsx @@ -38,7 +38,7 @@ class UnsubmittedVideosComponent extends React.Component 0 &&
this.setState({tableVisible: !this.state.tableVisible})}> {chrome.i18n.getMessage(this.state.tableVisible ? "hideUnsubmittedSegments" : "showUnsubmittedSegments")}
} - + {" "}
{chrome.i18n.getMessage("clearUnsubmittedSegments")}