Skip to content

Commit 917aa02

Browse files
committed
refactor: TT-218 sonarcloud
1 parent 39c0211 commit 917aa02

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

src/app/modules/customer-management/components/projects/components/project-list/project-list.component.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<table class="table table-sm table-bordered table-striped">
33
<thead class="thead-blue">
44
<tr class="d-flex">
5-
<th class="col-4 text-center">Project ID</th>
6-
<th class="col-4 text-center">Project</th>
7-
<th class="col-2 text-center">Options</th>
8-
<th class="col-2 text-center">Visibility</th>
5+
<th scope="col" class="col-4 text-center">Project ID</th>
6+
<th scope="col" class="col-4 text-center">Project</th>
7+
<th scope="col" class="col-2 text-center">Options</th>
8+
<th scope="col" class="col-2 text-center">Visibility</th>
99
</tr>
1010
</thead>
1111
<tbody>
@@ -25,7 +25,7 @@
2525
[ngClass]="project.btnColor"
2626
(click)="switchStatus(project)"
2727
>
28-
<i class="fa" [ngClass]="project.btnIcon" ></i>
28+
<em class="fa" [ngClass]="project.btnIcon" ></em>
2929
{{project.btnName}}
3030
</button>
3131
</td>

src/app/modules/customer-management/components/projects/components/project-list/project-list.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ import { Component, OnInit, OnDestroy } from '@angular/core';
22
import { Store, select } from '@ngrx/store';
33
import { Subscription } from 'rxjs';
44
import { ITEMS_PER_PAGE } from 'src/environments/environment';
5-
import { Project } from 'src/app/modules/shared/models';
65
import { ProjectState } from '../store/project.reducer';
76
import { getCustomerProjects } from '../store/project.selectors';
87
import * as actions from '../store/project.actions';
98
import { ProjectUI } from '../../../../../shared/models/project.model';
10-
import { UnarchiveProject } from '../store/project.actions';
119

1210
@Component({
1311
selector: 'app-project-list',
@@ -80,7 +78,7 @@ export class ProjectListComponent implements OnInit, OnDestroy {
8078
this.openModal(item);
8179
} else {
8280
this.showModal = false;
83-
this.store.dispatch(new UnarchiveProject(item.id));
81+
this.store.dispatch(new actions.UnarchiveProject(item.id));
8482
}
8583
}
8684

0 commit comments

Comments
 (0)