aboutsummaryrefslogtreecommitdiff
path: root/app/components
diff options
context:
space:
mode:
Diffstat (limited to 'app/components')
-rw-r--r--app/components/plan-node/plan-node.ts10
-rw-r--r--app/components/plan-view/plan-view.ts4
2 files changed, 8 insertions, 6 deletions
diff --git a/app/components/plan-node/plan-node.ts b/app/components/plan-node/plan-node.ts
index ce5f5db..8e4e261 100644
--- a/app/components/plan-node/plan-node.ts
+++ b/app/components/plan-node/plan-node.ts
@@ -53,8 +53,7 @@ export class PlanNode {
constructor(private _planService: PlanService,
private _syntaxHighlightService: SyntaxHighlightService,
private _helpService: HelpService,
- private _colorService: ColorService)
- { }
+ private _colorService: ColorService) { }
ngOnInit() {
this.currentHighlightType = this.viewOptions.highlightType;
@@ -126,7 +125,10 @@ export class PlanNode {
break;
}
- if (this.width < 1) { this.width = 1 }
+ if (this.width < 1) {
+ this.width = 1;
+ }
+
this.backgroundColor = this._colorService.numberToColorHsl(1 - this.width / nodeWidth);
}
@@ -134,7 +136,7 @@ export class PlanNode {
var dur: number = _.round(this.node[this._planService.ACTUAL_DURATION_PROP]);
// convert duration into approriate units
if (dur < 1) {
- this.duration = "<1";
+ this.duration = '<1';
this.durationUnit = 'ms';
} else if (dur > 1 && dur < 1000) {
this.duration = dur.toString();
diff --git a/app/components/plan-view/plan-view.ts b/app/components/plan-view/plan-view.ts
index 302d8ee..93b3a97 100644
--- a/app/components/plan-view/plan-view.ts
+++ b/app/components/plan-view/plan-view.ts
@@ -55,7 +55,7 @@ export class PlanView {
maxRows: this.rootContainer[this._planService.MAXIMUM_ROWS_PROP] || 0,
maxCost: this.rootContainer[this._planService.MAXIMUM_COSTS_PROP] || 0,
maxDuration: this.rootContainer[this._planService.MAXIMUM_DURATION_PROP] || 0
- }
+ };
}
ngOnInit() {
@@ -75,7 +75,7 @@ export class PlanView {
var unit: string = '';
if (originalValue < 1) {
- duration = "<1";
+ duration = '<1';
unit = 'ms';
} else if (originalValue > 1 && originalValue < 1000) {
duration = originalValue.toString();