Removing ChannelDownload in favor of Download.channel_id.

This commit is contained in:
Roland 2024-07-20 15:35:16 -06:00
parent 958dbb899d
commit 63738bd70f
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
17 changed files with 290 additions and 364 deletions

View file

@ -252,17 +252,6 @@ class RecurringDownloadRow extends React.Component {
}
}
handleDelete = async () => {
const {id} = this.props;
try {
await deleteDownload(id);
} finally {
if (this.props.fetchDownloads) {
this.props.fetchDownloads();
}
}
}
handleRestart = async () => {
const {id} = this.props;
try {
@ -295,7 +284,6 @@ class RecurringDownloadRow extends React.Component {
next_download,
error,
downloader,
channel_id
} = this.props;
const {errorModalOpen} = this.state;
@ -319,17 +307,6 @@ class RecurringDownloadRow extends React.Component {
</ModalActions>
</Modal>;
const deleteButton = <>
<APIButton
color='red'
icon='trash'
confirmContent='Are you sure you want to delete this download?'
confirmButton='Delete'
onClick={this.handleDelete}
obeyWROLMode={true}
/>
</>;
const editButton = <>
<Button icon='edit' onClick={() => this.setState({editModalOpen: true})}/>
</>