Implement card fetching and parsing

This commit is contained in:
Zed
2019-07-11 19:22:23 +02:00
parent 1f90e2ab3e
commit d3a7ca834b
7 changed files with 113 additions and 13 deletions

View File

@@ -14,7 +14,7 @@ proc getTabClass(timeline: Timeline; tab: string): string =
if timeline.query.isNone:
if tab == "tweets":
classes.add "active"
elif $timeline.query.get().queryType == tab:
elif $timeline.query.get().kind == tab:
classes.add "active"
return classes.join(" ")