import {
    Component,
    Injector,
    ViewChild
 } from '@angular/core';
 import {
    AppComponentBase
 } from '@shared/common/app-component-base';
import { ModalDirective } from 'ngx-bootstrap';
 
 @Component({
    selector: 'generateRoutesLaboratoryTracking',
    templateUrl: './generate-routes-laboratory-tracking.component.html'
 })
 export class GenerateRoutesLaboratoryTrackingComponent extends AppComponentBase {

   @ViewChild('trackingModal', {static: false}) modal: ModalDirective;

   generatingRoutes = true;

   messages = [];
   
   constructor(
      injector: Injector
   ) {
      super(injector);
   }

   clearMessages() {
      this.messages = [];
   }

   logMessage(message: string) {

      this.messages.push(message);
   }

   complete () {
      
      this.generatingRoutes = false;
   }
 }