Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
refactor: TT-218 sonarcloud
  • Loading branch information
jeffqev committed May 5, 2021
commit 917aa02528014d88aa28c138e4b0cfd2e69cef7a
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<table class="table table-sm table-bordered table-striped">
<thead class="thead-blue">
<tr class="d-flex">
<th class="col-4 text-center">Project ID</th>
<th class="col-4 text-center">Project</th>
<th class="col-2 text-center">Options</th>
<th class="col-2 text-center">Visibility</th>
<th scope="col" class="col-4 text-center">Project ID</th>
<th scope="col" class="col-4 text-center">Project</th>
<th scope="col" class="col-2 text-center">Options</th>
<th scope="col" class="col-2 text-center">Visibility</th>
</tr>
</thead>
<tbody>
Expand All @@ -25,7 +25,7 @@
[ngClass]="project.btnColor"
(click)="switchStatus(project)"
>
<i class="fa" [ngClass]="project.btnIcon" ></i>
<em class="fa" [ngClass]="project.btnIcon" ></em>
{{project.btnName}}
</button>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import { Component, OnInit, OnDestroy } from '@angular/core';
import { Store, select } from '@ngrx/store';
import { Subscription } from 'rxjs';
import { ITEMS_PER_PAGE } from 'src/environments/environment';
import { Project } from 'src/app/modules/shared/models';
import { ProjectState } from '../store/project.reducer';
import { getCustomerProjects } from '../store/project.selectors';
import * as actions from '../store/project.actions';
import { ProjectUI } from '../../../../../shared/models/project.model';
import { UnarchiveProject } from '../store/project.actions';

@Component({
selector: 'app-project-list',
Expand Down Expand Up @@ -80,7 +78,7 @@ export class ProjectListComponent implements OnInit, OnDestroy {
this.openModal(item);
} else {
this.showModal = false;
this.store.dispatch(new UnarchiveProject(item.id));
this.store.dispatch(new actions.UnarchiveProject(item.id));
}
}

Expand Down