🔎 Integration with DC++ downloads endpoint
This commit is contained in:
@@ -119,7 +119,7 @@ export const AcquisitionPanel = (
|
||||
),
|
||||
);
|
||||
},
|
||||
[],
|
||||
[airDCPPConfiguration],
|
||||
);
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -57,6 +57,7 @@ export const DownloadsPanel = (
|
||||
<th>Filename</th>
|
||||
<th>Size</th>
|
||||
<th>Download Time</th>
|
||||
<th>Bundle ID</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -72,6 +73,9 @@ export const DownloadsPanel = (
|
||||
.unix(bundle.time_finished)
|
||||
.format("h:mm on ddd, D MMM, YYYY")}
|
||||
</td>
|
||||
<td>
|
||||
<span className="tag is-warning">{bundle.id}</span>
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
|
||||
@@ -10,7 +10,7 @@ export const TabControls = (props): ReactElement => {
|
||||
|
||||
const [active, setActive] = useState(filteredTabs[0].id);
|
||||
useEffect(() => {
|
||||
console.log("changed");
|
||||
console.log(comicBookDetailData);
|
||||
setActive(filteredTabs[0].id);
|
||||
}, [comicBookDetailData]);
|
||||
|
||||
@@ -27,12 +27,11 @@ export const TabControls = (props): ReactElement => {
|
||||
{/* Downloads tab and count badge */}
|
||||
<a>
|
||||
{id === 5 &&
|
||||
!isNil(comicBookDetailData) &&
|
||||
!isEmpty(comicBookDetailData) ? (
|
||||
!isNil(comicBookDetailData.acquisition.directconnect) ? (
|
||||
<span className="download-icon-labels">
|
||||
<i className="fa-solid fa-download"></i>
|
||||
<span className="tag downloads-count is-info is-light">
|
||||
{comicBookDetailData.acquisition.directconnect.length}
|
||||
{comicBookDetailData.acquisition.directconnect.downloads.length}
|
||||
</span>
|
||||
</span>
|
||||
) : (
|
||||
|
||||
@@ -20,7 +20,7 @@ export const PullList = ({ issues }: PullListProps): ReactElement => {
|
||||
useEffect(() => {
|
||||
dispatch(
|
||||
getWeeklyPullList({
|
||||
startDate: "2022-7-7",
|
||||
startDate: "2022-7-29",
|
||||
pageSize: "15",
|
||||
currentPage: "1",
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user