Skip to content

Commit ca2e14d

Browse files
Fix percent headers
1 parent 85227fe commit ca2e14d

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/app/elements/table/table.filter.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
<fa-icon class="icon up sorter" [icon]="icons.faArrowUp" style="display: none"></fa-icon>
4949
<fa-icon class="icon down sorter" [icon]="icons.faArrowDown" style="display: none"></fa-icon>
5050

51-
<div *ngIf="!col.headerlink && col.type !== 'selector'" class="pull-left">{{col?.name}}</div>
51+
<div *ngIf="!col.headerlink && col.type !== 'selector'" class="pull-left">{{col?.name}}{{col?.type === 'percent' ? ', %' : ''}}</div>
5252
<a *ngIf="col.headerlink" class="pull-left" oncontextmenu="return false;"
53-
(contextmenu)="openlink(col.headerlink)" title="Right click to open">{{col?.name}}</a>
53+
(contextmenu)="openlink(col.headerlink)" title="Right click to open">{{col?.name}}{{col?.type === 'percent' ? ', %' : ''}}</a>
5454
<input *ngIf="col.type === 'selector'" name="select_all" type="checkbox"
5555
[title]="selectAll ? 'Deselect All' : 'Select All'" [ngModel]="selectAll"
5656
(ngModelChange)="toggleSelectAll($event)" />

src/app/pages/audit/audit-list/audit.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class AuditComponent implements OnInit {
102102
class: 'fit'
103103
},
104104
{
105-
name: 'Last Audit Result, %',
105+
name: 'Last Audit Result',
106106
property: 'result',
107107
filter: true,
108108
sorting: true,

src/app/pages/audit/audit-project-list/audit.project.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ export class AuditProjectComponent implements OnInit {
6464
{ name: 'Progress Finished', property: 'progress_finished', sorting: true, type: TFColumnType.date },
6565
{ name: 'Submitted', property: 'submitted', sorting: true, type: TFColumnType.date },
6666
{
67-
name: 'Result, %',
67+
name: 'Result',
6868
property: 'result',
6969
sorting: true,
70-
type: TFColumnType.text
70+
type: TFColumnType.percent
7171
},
7272
{
7373
name: 'Auditors',

src/app/pages/customer/customer-list/customer.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class CustomerComponent implements OnInit {
5959
property: 'projects_count',
6060
filter: true,
6161
sorting: true,
62-
type: TFColumnType.percent,
62+
type: TFColumnType.number,
6363
class: 'fit'
6464
}
6565
];

src/app/pages/project/project-view/project-veiw.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class ProjectViewComponent implements OnInit {
6565
{ name: 'Execution Environment', property: 'execution_environment', type: TFColumnType.text },
6666
{ name: 'Start Time', property: 'start_time', type: TFColumnType.date, class: 'fit' },
6767
{ name: 'Finish Time', property: 'finish_time', type: TFColumnType.date, class: 'fit' },
68-
{ name: 'Pass Rate, %', property: 'failed', type: TFColumnType.text, class: 'fit' },
68+
{ name: 'Pass Rate', property: 'failed', type: TFColumnType.percent, class: 'fit' },
6969
];
7070
});
7171
}

src/app/pages/project/testrun/testrun-list/testruns.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export class TestRunsComponent implements OnInit {
173173
},
174174
class: 'ft-width-250'
175175
},
176-
{ name: 'Pass Rate, %', property: 'passrate', sorting: true, type: TFColumnType.text, class: 'fit' },
176+
{ name: 'Pass Rate', property: 'passrate', sorting: true, type: TFColumnType.percent, class: 'fit' },
177177
{ name: 'Duration', property: 'duration', filter: true, sorting: true, type: TFColumnType.time, class: 'fit' }
178178
];
179179
this.hiddenCols = [

0 commit comments

Comments
 (0)