From: wn_ Date: Tue, 1 Aug 2017 23:15:16 +0000 (-0500) Subject: Don't display label context menu items if there are no labels. X-Git-Tag: 17.12~134^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b5fc9781adf9753d2c764421af7b0355234d21a1;p=tt-rss.git Don't display label context menu items if there are no labels. Caused by: 5e78b0c253d56d85b0339636c8793f93c835b792 See: https://discourse.tt-rss.org/t/label-options-sometimes-not-showing-in-context-menu/366 --- diff --git a/js/viewfeed.js b/js/viewfeed.js index 3aaea99b..e0ad2dd3 100755 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1740,7 +1740,7 @@ function headlinesMenuCommon(menu) { var labels = getInitParam("labels"); - if (labels) { + if (labels && labels.length) { menu.addChild(new dijit.MenuSeparator());