[Frontend] Only include grippy when there's more than one element (#2055)

Fixes #2053
This commit is contained in:
Charles Hacskaylo 2018-06-01 16:28:40 -07:00 committed by Pegah Sarram
parent 0520b03b97
commit 2e99f90b7c

View File

@ -25,10 +25,12 @@
ng-model="filterBy">
</mct-include>
<div class="flex-elem grows vscroll">
<ul class="tree" id="inspector-elements-tree" ng-if="composition.length > 0">
<ul class="tree" id="inspector-elements-tree"
ng-if="composition.length > 0">
<li ng-repeat="containedObject in composition | filter:searchElements">
<span class="tree-item">
<span class="grippy-sm"
ng-if="composition.length > 1"
data-id="{{ containedObject.id }}"
mct-drag-down="dragDown($event)"
mct-drag="drag($event)"