Don't display label context menu items if there are no labels.

Caused by: 5e78b0c253
See: https://discourse.tt-rss.org/t/label-options-sometimes-not-showing-in-context-menu/366
This commit is contained in:
wn_ 2017-08-01 18:15:16 -05:00
parent 22adcd7466
commit b5fc9781ad

View file

@ -1740,7 +1740,7 @@ function headlinesMenuCommon(menu) {
var labels = getInitParam("labels");
if (labels) {
if (labels && labels.length) {
menu.addChild(new dijit.MenuSeparator());