- commit
- 9fdc3d74c0bdad8aae4159883a02276cfb6607eb
- parent
- 4f9527a5ebcc7678543d42c9a63b61b3f014f2c8
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2017-11-18 11:41
hide node__delegate for own in html
Diffstat
| M | static/scss/tree.scss | 4 | ---- |
| M | static/src/voterunner.js | 2 | +- |
2 files changed, 1 insertions, 5 deletions
diff --git a/static/scss/tree.scss b/static/scss/tree.scss
@@ -17,10 +17,6 @@ 17 17 } 18 18 19 19 &.node--self > .node__body {20 -1 .node__delegate {21 -1 display: none;22 -1 }23 -124 20 .node__header { 25 21 @media screen { 26 22 background-color: $color-link;
diff --git a/static/src/voterunner.js b/static/src/voterunner.js
@@ -115,7 +115,7 @@ var tplNode = function(nodes, node, ID) {
115 115 className: 'node__expand bar__item bar__item--button bar__item--left',
116 116 title: _(node.expanded ? 'collapse' : 'expand'),
117 117 }),
118 -1 h('button', {
-1 118 node.id !== ID && h('button', {
119 119 className: 'node__delegate bar__item bar__item--button bar__item--right',
120 120 title: _('delegate to ') + getName(node),
121 121 attributes: delegateAttrs,