|
|
|
@ -31,11 +31,11 @@ import {AbstractWorkPackageButtonComponent, ButtonControllerText} from '../wp-bu |
|
|
|
|
import {ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit} from '@angular/core'; |
|
|
|
|
import {I18nService} from 'core-app/modules/common/i18n/i18n.service'; |
|
|
|
|
import {TimelineZoomLevel} from 'core-app/modules/hal/resources/query-resource'; |
|
|
|
|
import {componentDestroyed, untilComponentDestroyed} from "ng2-rx-componentdestroyed"; |
|
|
|
|
import {untilComponentDestroyed} from "ng2-rx-componentdestroyed"; |
|
|
|
|
import { |
|
|
|
|
WorkPackageDisplayRepresentationService, |
|
|
|
|
WorkPackageViewDisplayRepresentationService, |
|
|
|
|
wpDisplayCardRepresentation |
|
|
|
|
} from "core-components/wp-fast-table/state/work-package-display-representation.service"; |
|
|
|
|
} from "core-components/wp-fast-table/state/wp-view-display-representation.service"; |
|
|
|
|
|
|
|
|
|
export interface TimelineButtonText extends ButtonControllerText { |
|
|
|
|
zoomOut:string; |
|
|
|
@ -68,7 +68,7 @@ export class WorkPackageTimelineButtonComponent extends AbstractWorkPackageButto |
|
|
|
|
constructor(readonly I18n:I18nService, |
|
|
|
|
readonly cdRef:ChangeDetectorRef, |
|
|
|
|
public wpTableTimeline:WorkPackageTableTimelineService, |
|
|
|
|
public wpDisplayRepresentationService:WorkPackageDisplayRepresentationService) { |
|
|
|
|
public wpDisplayRepresentationService:WorkPackageViewDisplayRepresentationService) { |
|
|
|
|
super(I18n); |
|
|
|
|
|
|
|
|
|
this.activateLabel = I18n.t('js.timelines.button_activate'); |
|
|
|
|