Channel Cancel button does not submit form.

This commit is contained in:
Roland 2021-12-30 19:07:48 -07:00
parent 9d1a0ecd55
commit d3b985241b
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 7 additions and 2 deletions

View file

@ -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>

View file

@ -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}>'