Skip to content

Commit

Permalink
Set entryType (#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
garyluu authored Aug 12, 2019
1 parent 4a501e9 commit 70bb93a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/app/home-page/old-home-page/old-home-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from '@angular/core';
import { MatDialog, MatDialogRef } from '@angular/material';
import { Router } from '@angular/router';
import { EntryType } from 'app/shared/enum/entry-type';
import { SessionService } from 'app/shared/session/session.service';
import { User } from 'app/shared/swagger';
import { TwitterService } from 'app/shared/twitter.service';
import { UserQuery } from 'app/shared/user/user.query';
Expand Down Expand Up @@ -47,7 +49,13 @@ export class OldHomePageComponent implements OnInit, AfterViewInit {

@ViewChild('youtube') youtube: ElementRef;

constructor(private dialog: MatDialog, private twitterService: TwitterService, private userQuery: UserQuery, private router: Router) {}
constructor(
private dialog: MatDialog,
private twitterService: TwitterService,
private userQuery: UserQuery,
private router: Router,
private sessionService: SessionService
) {}

ngOnInit() {
this.user$ = this.userQuery.user$;
Expand All @@ -61,6 +69,7 @@ export class OldHomePageComponent implements OnInit, AfterViewInit {
}

onSelect(data: TabDirective): void {
this.sessionService.setEntryType(EntryType.BioWorkflow);
this.selectedTab = data.id;
}

Expand Down

0 comments on commit 70bb93a

Please sign in to comment.