diff options
author | Alex Tatiyants <atatiyan@gmail.com> | 2016-02-27 14:38:42 -0800 |
---|---|---|
committer | Alex Tatiyants <atatiyan@gmail.com> | 2016-02-27 14:38:42 -0800 |
commit | 7fc812bc761c95e508e1c540393b12b03cdf1d03 (patch) | |
tree | 49d836b7fe9a9df441091b4e73646fcbcf5de6cc /app/components/plan-view/plan-view.ts | |
parent | 781479ea7f793c8d075caee53f6413a1d2e85307 (diff) |
add Dot view mode to make large plans easier to view
Diffstat (limited to 'app/components/plan-view/plan-view.ts')
-rw-r--r-- | app/components/plan-view/plan-view.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/components/plan-view/plan-view.ts b/app/components/plan-view/plan-view.ts index 895cccf..9ba8782 100644 --- a/app/components/plan-view/plan-view.ts +++ b/app/components/plan-view/plan-view.ts @@ -2,7 +2,7 @@ import {Component, OnInit} from 'angular2/core'; import {ROUTER_DIRECTIVES, RouteParams} from 'angular2/router'; import {IPlan} from '../../interfaces/iplan'; -import {HighlightType} from '../../enums'; +import {HighlightType, ViewMode} from '../../enums'; import {PlanNode} from '../plan-node/plan-node'; import {PlanService} from '../../services/plan-service'; import {SyntaxHighlightService} from '../../services/syntax-highlight-service'; @@ -26,13 +26,15 @@ export class PlanView { showHighlightBar: true, showPlannerEstimate: false, showTags: true, - highlightType: HighlightType.NONE + highlightType: HighlightType.NONE, + viewMode: ViewMode.FULL }; showPlannerEstimate: boolean = true; showMenu: boolean = false; highlightTypes = HighlightType; // exposing the enum to the view + viewModes = ViewMode; constructor(private _planService: PlanService, routeParams: RouteParams) { this.id = routeParams.get('id'); |