aboutsummaryrefslogtreecommitdiff
path: root/src/Board.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Board.js')
-rw-r--r--src/Board.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/Board.js b/src/Board.js
index 41727bc..b15f050 100644
--- a/src/Board.js
+++ b/src/Board.js
@@ -35,7 +35,12 @@ class Board extends Component {
if (resource["state"] === "error") {
this.setState({ error: resource });
}
- this.setState({ isLoaded: true, threadList: resource["threads"] });
+ this.setState(
+ { isLoaded: true, threadList: resource["threads"] },
+ () => {
+ window.scrollTo(0, 0);
+ }
+ );
});
window.scrollTo(0, 0);
window.addEventListener("scroll", this.handleScroll);
@@ -127,6 +132,14 @@ class Board extends Component {
<Breadcrumb.Divider icon="right chevron" />
<Breadcrumb.Section link>{currentBoard.name}</Breadcrumb.Section>
</Breadcrumb>
+ <Segment basic>
+ <Header as="h1">
+ {currentBoard.name}
+ <Header.Subheader>/{currentBoard.dir}/</Header.Subheader>
+ </Header>
+ <Link to={`/list/${currentBoard.dir}`}>Lista de hilos</Link>
+ </Segment>
+
{threadList.map(thread => (
<Segment.Group key={"seg_" + thread.timestamp + thread.id}>
<Header as="h3" attached inverted={nightMode}>