<ul>
  <li data-ng-if="(model.length || onlySelected) && !isEditing">
    <a class="sequoia-button sequoia-button-info" href="" data-ng-click="toggleSelected()" data-ng-bind-html="model.length && !onlySelected ? buttons.showSelected : !model.length && onlySelected ? buttons.backToList : buttons.hideSelected"></a>
  </li>

  <li data-ng-if="isEditing || !tree.tree.length">
    <a class="sequoia-button sequoia-button-success" href="" data-ng-click="addNode()" data-ng-bind-html="buttons.addNode"></a>
  </li>

  <li data-ng-if="canEdit && tree.tree.length">
    <a class="sequoia-button sequoia-button-info" href="" data-ng-click="toggleEditing(sequoiaEditForm)" data-ng-bind-html="isEditing ? buttons.done : buttons.edit"></a>
  </li>

</ul>

<ul>
  <li data-ng-if="(model.length || onlySelected) && !isEditing">
    <a class="sequoia-button sequoia-button-info" href="" data-ng-click="toggleSelected()" data-ng-bind-html="model.length && !onlySelected ? buttons.showSelected : !model.length && onlySelected ? buttons.backToList : buttons.hideSelected"></a>
  </li>

  <li data-ng-if="isEditing">
    <a class="sequoia-button sequoia-button-success" href="" data-ng-click="addNode()" data-ng-bind-html="buttons.addNode"></a>
  </li>

  <li data-ng-if="canEdit">
    <a class="sequoia-button sequoia-button-info" href="" data-ng-click="toggleEditing(sequoiaEditForm)" data-ng-bind-html="isEditing ? buttons.done : buttons.edit"></a>
  </li>

</ul>

Fix bug that was hiding the Done button when the user deleted all the tree nodes in edit mode
Fix bug that was hiding the Done button when the user deleted all the tree nodes in edit mode
