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

46 lines
1.6 KiB

<ul id="work-packages-timeline-mode-selection"
class="toolbar-button-group">
<li ng-if="vm.isActive()">
<button id="work-packages-timeline-zoom-auto-button"
class="button timeline-toolbar--button toolbar-icon"
ng-class="vm.getAutoZoomToggleClass()"
title="{{ vm.text.zoomAuto }}"
ng-click="vm.toggleAutoZoom()">
<op-icon icon-classes="icon-zoom-auto button--icon"></op-icon>
</button>
</li>
<li ng-if="vm.isActive()">
<button id="work-packages-timeline-zoom-out-button"
class="button timeline-toolbar--button toolbar-icon"
title="{{ vm.text.zoomOut }}"
ng-disabled="vm.currentZoom == vm.maxZoomLevel"
ng-click="vm.updateZoomWithDelta(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 toolbar-icon"
title="{{ vm.text.zoomIn }}"
ng-disabled="vm.currentZoom == vm.minZoomLevel"
ng-click="vm.updateZoomWithDelta(-1)">
<op-icon icon-classes="icon-zoom-in button--icon"></op-icon>
</button>
</li>
<li>
<button id="{{ ::vm.buttonId }}"
class="button timeline-toolbar--button toolbar-icon"
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>
</ul>