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:
parent
22adcd7466
commit
b5fc9781ad
|
@ -1740,7 +1740,7 @@ function headlinesMenuCommon(menu) {
|
||||||
|
|
||||||
var labels = getInitParam("labels");
|
var labels = getInitParam("labels");
|
||||||
|
|
||||||
if (labels) {
|
if (labels && labels.length) {
|
||||||
|
|
||||||
menu.addChild(new dijit.MenuSeparator());
|
menu.addChild(new dijit.MenuSeparator());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue