mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
Channel Cancel button does not submit form.
This commit is contained in:
parent
9d1a0ecd55
commit
d3b985241b
2 changed files with 7 additions and 2 deletions
|
|
@ -269,6 +269,11 @@ class ChannelPage extends APIForm {
|
|||
this.setState({deleteOpen: true});
|
||||
}
|
||||
|
||||
handleCancel = (e) => {
|
||||
e.preventDefault();
|
||||
this.props.history.goBack();
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<Container>
|
||||
|
|
@ -410,7 +415,7 @@ class ChannelPage extends APIForm {
|
|||
<Button
|
||||
secondary
|
||||
floated='right'
|
||||
onClick={() => this.props.history.goBack()}
|
||||
onClick={this.handleCancel}
|
||||
>
|
||||
Cancel
|
||||
</Button>
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ logger = logger.getChild(__name__)
|
|||
|
||||
class ArchiveDownloader(Downloader, ABC):
|
||||
name = 'archive'
|
||||
pretty_name = 'Archiver'
|
||||
pretty_name = 'Archive'
|
||||
|
||||
def __repr__(self):
|
||||
return f'<ArchiveDownloader name={self.name}>'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue