Skip to content
Snippets Groups Projects
Commit 57a56d34 authored by ge54hev's avatar ge54hev
Browse files

linting

parent be74b364
Branches
Tags
No related merge requests found
......@@ -167,6 +167,7 @@
<div *ngIf="showDetails" class="card-content">
<div class="content">
<!-- <h2>Summary</h2>-->
<p>Hold down the CTRL button to select multiple proteins.</p>
<figure class="image">
<!-- <img src="assets/boxplot.png" alt="Boxplots">-->
</figure>
......
......@@ -7,6 +7,8 @@ import {AnalysisService} from '../../analysis.service';
declare var vis: any;
@Component({
selector: 'app-explorer-page',
templateUrl: './explorer-page.component.html',
......@@ -42,12 +44,16 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
public showAnalysisDialog = false;
@ViewChild('network', {static: false}) networkEl: ElementRef;
@HostListener('window:keydown', ['$event'])
handleKeyboardEvent1(event: KeyboardEvent) {
if (event.keyCode == 17)
{
if (event.ctrlKey) {
this.watcher = 1;
console.log(this.watcher);
......@@ -58,17 +64,13 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
handleKeyboardEvent(event: KeyboardEvent) {
if (event.keyCode == 17)
{
if (event.ctrlKey) {
this.watcher = 0;
console.log(this.watcher);
}
}
@ViewChild('network', {static: false}) networkEl: ElementRef;
constructor(private http: HttpClient,
private route: ActivatedRoute,
private router: Router,
......@@ -223,8 +225,8 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
const protein = this.proteinData.getProtein(id[0].substr(3));
this.openSummary(protein, false);
console.log(this.currentProteinAc);
if (this.watcher==1){
if(this.inSelection(protein.proteinAc) == true){
if (this.watcher === 1 ) {
if (this.inSelection(protein.proteinAc) === true) {
console.log(this.removeFromSelection(protein.proteinAc));
} else {
console.log(this.addToSelection(protein.proteinAc));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment