diff options
author | Alex Tatiyants <atatiyan@gmail.com> | 2016-01-05 21:50:10 -0800 |
---|---|---|
committer | Alex Tatiyants <atatiyan@gmail.com> | 2016-01-05 21:50:10 -0800 |
commit | 6808fd285d54182da5dca9e4190ad9d766c4c783 (patch) | |
tree | a82fdc9295aef9f82172c482dbf91f3b63c294e6 /app/components/plan-node | |
parent | 9554ab8c51c0a5853a58be98936223908eabcbb9 (diff) |
add about page, multiple UI tweaks
Diffstat (limited to 'app/components/plan-node')
-rw-r--r-- | app/components/plan-node/plan-node.html | 13 | ||||
-rw-r--r-- | app/components/plan-node/plan-node.ts | 2 |
2 files changed, 8 insertions, 7 deletions
diff --git a/app/components/plan-node/plan-node.html b/app/components/plan-node/plan-node.html index 08a7a96..fdc2c89 100644 --- a/app/components/plan-node/plan-node.html +++ b/app/components/plan-node/plan-node.html @@ -1,5 +1,5 @@ <div class="plan-node" [class.expanded]="showDetails"> - <header (click)="showDetails = !showDetails"> + <header (click)="showDetails = !showDetails" tooltip="view node details"> <h4>{{node[_planService.NODE_TYPE_PROP] | uppercase}} </h4> <span class="node-duration">{{duration}}<span class="text-muted">{{durationUnit}} | </span> @@ -7,11 +7,12 @@ </span> </header> - <div class="relation-name" *ngIf="node[_planService.RELATION_NAME_PROP]"> - <button *ngIf="plan.formattedQuery" class="btn btn-sm btn-default btn-slim pull-right" (click)="showQuery = !showQuery"> - <i class="fa fa-database"></i> - </button> + <button *ngIf="plan.formattedQuery" tooltip="view corresponding query" + class="btn btn-sm btn-default btn-slim pull-right" (click)="showQuery = !showQuery"> + <i class="fa fa-database"></i> + </button> + <div class="relation-name" *ngIf="node[_planService.RELATION_NAME_PROP]"> <span class="text-muted">on </span> <span *ngIf="node[_planService.SCHEMA_PROP]">{{node[_planService.SCHEMA_PROP]}}.</span>{{node[_planService.RELATION_NAME_PROP]}} <span *ngIf="node[_planService.ALIAS_PROP]"> ({{node[_planService.ALIAS_PROP]}})</span> @@ -31,7 +32,7 @@ </div> <div *ngIf="currentHighlightType !== highlightTypes.NONE"> - <div class="node-bar-container" [style.width]="(MAX_WIDTH+3)+'px'"> + <div class="node-bar-container" [style.width]="(MAX_WIDTH)+'px'"> <span class="node-bar" [style.width]="width+'px'" [style.backgroundColor]="backgroundColor"></span> </div> <span class="node-bar-label"> diff --git a/app/components/plan-node/plan-node.ts b/app/components/plan-node/plan-node.ts index fc865b8..2f3164e 100644 --- a/app/components/plan-node/plan-node.ts +++ b/app/components/plan-node/plan-node.ts @@ -66,7 +66,6 @@ export class PlanNode { } ngDoCheck() { - // console.log("check", this.currentHighlightType, this.viewOptions.highlightType); if (this.currentHighlightType !== this.viewOptions.highlightType) { this.currentHighlightType = this.viewOptions.highlightType; this.calculateBar(); @@ -78,6 +77,7 @@ export class PlanNode { keyItems.push(this.node[this._planService.SCHEMA_PROP] + '.' + this.node[this._planService.RELATION_NAME_PROP]); keyItems.push(' ' + this.node[this._planService.RELATION_NAME_PROP] + ' '); keyItems.push(' ' + this.node[this._planService.ALIAS_PROP] + ' '); + keyItems.push(this.node[this._planService.GROUP_KEY_PROP]); return this._syntaxHighlightService.highlightKeyItems(this.plan.formattedQuery, keyItems); } |