Do not show vertical navigation if only one tab exists.
This commit is contained in:
parent
9a7413503b
commit
5127b99ad5
1 changed files with 7 additions and 0 deletions
|
@ -152,6 +152,13 @@ class Navbar extends App.Controller
|
|||
render: (data) =>
|
||||
return if !data
|
||||
|
||||
# do not show vertical navigation if only one tab exists
|
||||
if @vertical
|
||||
if data && data.length <= 1
|
||||
@el.addClass('hidden')
|
||||
else
|
||||
@el.removeClass('hidden')
|
||||
|
||||
# set page title
|
||||
if @activeState && @view && !@vertical
|
||||
for item in data
|
||||
|
|
Loading…
Reference in a new issue