summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorwn_ <[email protected]>2017-08-01 18:15:16 -0500
committerwn_ <[email protected]>2017-08-01 18:15:16 -0500
commitb5fc9781adf9753d2c764421af7b0355234d21a1 (patch)
treea86e6f5ee68d0f946de38a683c24072efaffb758 /js
parent22adcd7466777d21d7d642647831761d90ea289a (diff)
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
Diffstat (limited to 'js')
-rwxr-xr-xjs/viewfeed.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index 3aaea99b9..e0ad2dd32 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());