mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-26 09:56:17 -05:00
Removing ChannelDownload in favor of Download.channel_id.
This commit is contained in:
parent
958dbb899d
commit
63738bd70f
17 changed files with 290 additions and 364 deletions
|
|
@ -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})}/>
|
||||
</>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue