import { UserInfo } from 'app/models/userInfo.model';
import { Component, OnInit, OnDestroy, OnChanges } from '@angular/core';
import { Subject } from 'rxjs/Subject';
import {ActivatedRoute, Router} from '@angular/router';
import { Location } from '@angular/common';
import { EmployeeHttpService } from 'app/services/employee/employee-http.service';
import { EmployeeNavBarService } from '../employee-nav-bar.service';
import { EmployeeCoursesSliderComponent } from '../../shared/employee-course-card/employee-course-card.component';
import { EmployeeDashboardLeaderBoardComponent } from '../../shared/employee-dashboard-leader-board/employee-dashboard-leader-board.component';
import { EmployeeDetailsResponse, StatusCount, EmployeeDashboardTabNames } from 'app/models/employee.model';
import { LocalStorageService } from 'angular-2-local-storage';
import { PlatformHttpService } from 'app/services/platform/platform-http.service';
import { ComponentPlatformResponse } from 'app/models/conponent-platform.model';
import { Observable } from 'rxjs/Observable';
import { AuthService } from 'app/services/auth.service';
import { DirectoryBundleResponse } from 'app/models/directory-bundle-model';
import { SkillsResponse } from 'app/models/skills.model';
import { ProgressStateSetupWorkspaceService } from 'app/employee/employee-dashboard/employee-sandbox/progress-state-setup-workspace.service';
import { state, ResponseSetupWorkSpace } from 'app/models/sandbox-progress.model';
import { environment } from '../../../../environments/environment.dev';
@Component({
  selector: 'app-employee-dashboard-content',
  templateUrl: './employee-dashboard-content.component.html',
  styleUrls: ['./employee-dashboard-content.component.css']
})
export class EmployeeDashboardContentComponent implements OnInit {
  imagelink: string;
  mytaskview: Boolean;
  showArow: boolean;
  myfeedbackview: boolean;

  constructor(protected localStorageService: LocalStorageService,
              private router: Router,
              private employeeNavBarService: EmployeeNavBarService) {
    this.employeeNavBarService.setCurrentPage(0);
  }

  ngOnInit() {
    this.mytaskview = true;
    this.myfeedbackview = false;
    this.imagelink = environment.imageUrl+'/assets/img/employee/newdashboard/';
  }
  goPrevPage(event) {
    // alert('here');
    this.showArow = event;
  }
  viewchange(view) {
    if (view === 'myfeedbackview') {
      this.mytaskview = false;
      this.myfeedbackview = true;
    } else {
      this.mytaskview = true;
      this.myfeedbackview = false;
    }
  }
}
