From 5127b99ad51c55d32645d5a626279013c3b8b603 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 18 Nov 2015 16:33:19 +0100 Subject: [PATCH] Do not show vertical navigation if only one tab exists. --- .../javascripts/app/controllers/ticket_overview.coffee | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/assets/javascripts/app/controllers/ticket_overview.coffee b/app/assets/javascripts/app/controllers/ticket_overview.coffee index 77c6a1e83..46606fda4 100644 --- a/app/assets/javascripts/app/controllers/ticket_overview.coffee +++ b/app/assets/javascripts/app/controllers/ticket_overview.coffee @@ -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