Move segment export to backup page and improve margins

This commit is contained in:
Ajay 2022-09-02 00:15:05 -04:00
parent bbea534781
commit 9c7d153f15
4 changed files with 7 additions and 9 deletions

View file

@ -1207,6 +1207,6 @@
"description": "Header of the unsubmitted segments list"
},
"exportSegmentsAsURL": {
"message": "Export segments as URL"
"message": "Share as URL"
}
}

View file

@ -362,6 +362,8 @@
</div>
</div>
</div>
<div data-type="react-UnsubmittedVideosComponent"></div>
<div data-type="private-text-change" data-sync="*" data-confirm-message="exportOptionsWarning">
<h2>__MSG_exportOptions__</h2>
@ -491,10 +493,6 @@
<div class="small-description">__MSG_copyDebugInformationOptions__</div>
</div>
<div data-type="react-UnsubmittedVideosComponent">
</div>
<div data-type="toggle" data-sync="testingServer" data-confirm-message="testingServerWarning" data-no-safari="true">
<div class="switch-container">
<label class="switch">

View file

@ -29,7 +29,8 @@ class UnsubmittedVideoListComponent extends React.Component<UnsubmittedVideoList
return (
<table id="unsubmittedVideosList"
className="categoryChooserTable">
className="categoryChooserTable"
style={{marginTop: "10px"}} >
<tbody>
{/* Headers */}
<tr id="UnsubmittedVideosListHeader"

View file

@ -15,7 +15,6 @@ class UnsubmittedVideosComponent extends React.Component<UnsubmittedVideosProps,
constructor(props: UnsubmittedVideosProps) {
super(props);
// Setup state
this.state = {
tableVisible: false,
};
@ -23,10 +22,10 @@ class UnsubmittedVideosComponent extends React.Component<UnsubmittedVideosProps,
render(): React.ReactElement {
const videoCount = Object.keys(Config.config.unsubmittedSegments).length;
const segmentCount = Object.values(Config.config.unsubmittedSegments).reduce((acc: number, vid: Array<unknown>) => acc+vid.length, 0);
const segmentCount = Object.values(Config.config.unsubmittedSegments).reduce((acc: number, vid: Array<unknown>) => acc + vid.length, 0);
return <>
<div>
<div style={{marginBottom: "10px"}}>
{segmentCount == 0 ?
chrome.i18n.getMessage("unsubmittedSegmentCountsZero") :
chrome.i18n.getMessage("unsubmittedSegmentCounts")