OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/frontend/app/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.html

31 lines
1.2 KiB

<ul id="work-packages-timeline-mode-selection" class="toolbar-button-group">
<li>
<button id="{{ ::vm.buttonId }}"
class="button timeline-toolbar--button"
title="{{ vm.label }}"
ng-click="vm.toggleTimeline()"
ng-disabled="vm.disabled || (!vm.isToggle() && vm.isActive())"
ng-class="{ '-active': vm.isActive() }">
<op-icon icon-classes="{{ ::vm.iconClass }} button--icon"></op-icon>
</button>
</li>
<li ng-if="vm.isActive()">
<button id="work-packages-timeline-zoom-out-button"
class="button timeline-toolbar--button"
title="{{ vm.text.zoomOut }}"
ng-disabled="vm.currentZoom == vm.maxZoomLevel"
ng-click="vm.updateZoom(1)">
<op-icon icon-classes="icon-zoom-out button--icon"></op-icon>
</button>
</li>
<li ng-if="vm.isActive()">
<button id="work-packages-timeline-zoom-in-button"
class="button timeline-toolbar--button"
title="{{ vm.text.zoomIn }}"
ng-disabled="vm.currentZoom == vm.minZoomLevel"
ng-click="vm.updateZoom(-1)">
<op-icon icon-classes="icon-zoom-in button--icon"></op-icon>
</button>
</li>
</ul>