Don't expand panel on profiles
This commit is contained in:
parent
5e7f136f82
commit
83a32a67a5
|
@ -56,8 +56,8 @@ proc renderSearchTabs*(query: Query): VNode =
|
||||||
a(href=genQueryUrl(q)): text "Users"
|
a(href=genQueryUrl(q)): text "Users"
|
||||||
|
|
||||||
proc isPanelOpen(q: Query): bool =
|
proc isPanelOpen(q: Query): bool =
|
||||||
q.filters.len > 0 or q.excludes.len > 0 or
|
q.fromUser.len == 0 and (q.filters.len > 0 or q.excludes.len > 0 or
|
||||||
@[q.near, q.until, q.since].anyIt(it.len > 0)
|
@[q.near, q.until, q.since].anyIt(it.len > 0))
|
||||||
|
|
||||||
proc renderSearchPanel*(query: Query): VNode =
|
proc renderSearchPanel*(query: Query): VNode =
|
||||||
let user = query.fromUser.join(",")
|
let user = query.fromUser.join(",")
|
||||||
|
|
Loading…
Reference in New Issue