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