FeedTree: add feed debugger to per-feed context menu

This commit is contained in:
Andrew Dolgov 2019-04-08 15:51:05 +03:00
parent 1a484ec3f5
commit cc2ac3a86c
1 changed files with 7 additions and 0 deletions

View File

@ -64,6 +64,13 @@ define(["dojo/_base/declare", "dojo/dom-construct", "dijit/Tree", "dijit/Menu"],
CommonDialogs.editFeed(this.getParent().row_id, false); CommonDialogs.editFeed(this.getParent().row_id, false);
}})); }}));
menu.addChild(new dijit.MenuItem({
label: __("Debug feed"),
onClick: function() {
window.open("backend.php?op=feeds&method=update_debugger&feed_id=" + this.getParent().row_id +
"&csrf_token=" + App.getInitParam("csrf_token"));
}}));
/* menu.addChild(new dijit.MenuItem({ /* menu.addChild(new dijit.MenuItem({
label: __("Update feed"), label: __("Update feed"),
onClick: function() { onClick: function() {