]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: minor clean up of toolbar (in services panel)
authorAdam Sutton <dev@adamsutton.me.uk>
Sun, 22 Sep 2013 12:30:36 +0000 (13:30 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Sun, 22 Sep 2013 12:30:36 +0000 (13:30 +0100)
src/webui/static/app/idnode.js

index 374b2a4d9d21b5e0fb3a52905af89f9d394e0bbe..6c8a641c669ac6f18c79eeaeca469c1cfb9e3779 100644 (file)
@@ -721,7 +721,8 @@ tvheadend.idnode_grid = function(panel, conf)
       });
       buttons.push(delBtn);
     }
-    buttons.push('-');
+    if (conf.add || conf.del)
+      buttons.push('-');
     editBtn = new Ext.Toolbar.Button({
       tooltip     : 'Edit selected entry',
       iconCls     : 'edit',