import { Component, OnInit } from '@angular/core';
import { ModalDirective } from 'ngx-bootstrap/modal';

@Component({
  templateUrl: 'employee.component.html',
  styleUrls:['./employee.component.scss']
})
export class EmployeeComponent implements OnInit {
  show = false;
  closed = false;
  public myModal;
  public myModalData;
  employees: any;
  constructor() { }
  ngOnInit(){
    this.employees = [
      {
        empId: '0001',
        name: 'xyz',
        mobile: '+919876543210',
        role: 'ADMIN',
        status: '1'
      },
      {
        empId: '0002',
        name: 'xss',
        mobile: '+911234567890',
        role: 'MANAGER',
        status: '1'
      },
      {
        empId: '0003',
        name: 'fys',
        mobile: '+911234567890',
        role: 'STAFF',
        status: '0'
      }
    ]
  }
  getModelWindowDetails(emp) {
    this.myModalData = emp||null;
  }

  editEmployee(){
     this.show = !this.show;
  }
}
