#97 Enhance feedtree tooltips with feed error messages

Merged
fox merged 1 commits from ggrandou/tree_tooltip_error into fox/master 1 year ago
1 changed files with 1 additions and 4 deletions
  1. 1 4
      js/FeedTree.js

+ 1 - 4
js/FeedTree.js

@@ -168,10 +168,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"],
 
 		},
 		getTooltip: function (item) {
-			if (item.updated)
-				return item.updated;
-			else
-				return "";
+			return [item.updated, item.error].filter(x => x && x != "").join(" - ");
 		},
 		getIconClass: function (item, opened) {
 			return (!item || this.model.mayHaveChildren(item)) ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "feed-icon";