Hide empty placeholder of ui-tree in sort templates.

This commit is contained in:
Emanuel Schütze 2017-03-08 23:07:22 +01:00
parent 27bc6a7df4
commit 780b9e2e9a
3 changed files with 4 additions and 3 deletions

View File

@ -23,7 +23,7 @@
{{ alert.msg }} {{ alert.msg }}
</div> </div>
<div ui-tree="treeOptions" id="tree-root"> <div ui-tree="treeOptions" id="tree-root" data-empty-placeholder-enabled="false">
<ol ui-tree-nodes ng-model="items"> <ol ui-tree-nodes ng-model="items">
<li ng-repeat="item in items" ui-tree-node ng-include="'nodes_renderer.html'"> <li ng-repeat="item in items" ui-tree-node ng-include="'nodes_renderer.html'">
</ol> </ol>

View File

@ -81,7 +81,7 @@
<!-- Next speakers --> <!-- Next speakers -->
<div ng-show="nextSpeakers.length > 0"> <div ng-show="nextSpeakers.length > 0">
<div ui-tree="treeOptions"> <div ui-tree="treeOptions" data-empty-placeholder-enabled="false">
<ol ui-tree-nodes="" ng-model="speakers"> <ol ui-tree-nodes="" ng-model="speakers">
<li ng-repeat="speaker in nextSpeakers | orderBy:'weight'" ui-tree-node> <li ng-repeat="speaker in nextSpeakers | orderBy:'weight'" ui-tree-node>
<i os-perms="agenda.can_manage" ui-tree-handle="" class="fa fa-arrows-v"></i> <i os-perms="agenda.can_manage" ui-tree-handle="" class="fa fa-arrows-v"></i>

View File

@ -82,7 +82,8 @@
<div ng-if="assignment.phase != 2"> <div ng-if="assignment.phase != 2">
<h3 translate>Candidates</h3> <h3 translate>Candidates</h3>
<div ui-tree="treeOptions" ng-if="assignment.assignment_related_users.length"> <div ui-tree="treeOptions" ng-if="assignment.assignment_related_users.length"
data-empty-placeholder-enabled="false">
<ol ui-tree-nodes="" ng-model="relatedUsersSorted"> <ol ui-tree-nodes="" ng-model="relatedUsersSorted">
<li ui-tree-node ng-repeat="related_user in assignment.assignment_related_users | orderBy:'weight'"> <li ui-tree-node ng-repeat="related_user in assignment.assignment_related_users | orderBy:'weight'">
<i ui-tree-handle="" class="fa fa-arrows-v spacer-right" os-perms="assignments.can_manage"></i> <i ui-tree-handle="" class="fa fa-arrows-v spacer-right" os-perms="assignments.can_manage"></i>