]> git.wh0rd.org Git - tt-rss.git/commitdiff
Don't display label context menu items if there are no labels.
authorwn_ <invalid@email.com>
Tue, 1 Aug 2017 23:15:16 +0000 (18:15 -0500)
committerwn_ <invalid@email.com>
Tue, 1 Aug 2017 23:15:16 +0000 (18:15 -0500)
Caused by: 5e78b0c253d56d85b0339636c8793f93c835b792
See: https://discourse.tt-rss.org/t/label-options-sometimes-not-showing-in-context-menu/366

js/viewfeed.js

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