<!-- <div class="btn-group" ng-show="buttonActionsVisible()">
  <button ng-repeat="action in actions | filter:filterButtonActions | orderBy:'priority':true" ng-hide="action.hide"
    type="button" class="btn btn-{{action.button.cls || 'default'}}" ng-click="run(action)">
    <i c8y-icon="{{action.icon}}"></i> {{action.text | translate}}
  </button>
</div> -->

<button
  class="dropdown-toggle c8y-dropdown"
  ng-show="cogActionsVisible() || buttonActionsVisible()"
  uib-dropdown-toggle
  aria-haspopup="true"
  title="{{ 'Actions' | translate }}"
>
  <i c8y-icon="cog icon-2x"></i>
</button>
<ul class="dropdown-menu cog-dropdown" uib-dropdown-menu>
  <li
    ng-repeat="action in actions | orderBy:['priority','-text|translate']:true"
    ng-hide="action.hide"
  >
    <button
      title="{{ action.text | translate }}"
      type="button"
      class="btn btn-dot"
      ng-click="run(action)"
    >
      <i c8y-icon="{{ action.icon }}"></i>
      {{ action.text | translate }}
    </button>
  </li>
</ul>
