Do not show vertical navigation if only one tab exists.

This commit is contained in:
Martin Edenhofer 2015-11-18 16:33:19 +01:00
parent 9a7413503b
commit 5127b99ad5

View file

@ -152,6 +152,13 @@ class Navbar extends App.Controller
render: (data) => render: (data) =>
return if !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 # set page title
if @activeState && @view && !@vertical if @activeState && @view && !@vertical
for item in data for item in data