/// *** Event handlers *************************************************
 /**
  * Guarda los cambios para el pago mensual
  * 
  * @memberOf EditarPagoComponent
  */
 GuardarCambios():void {
     this.activeModal.close();
     const modalRef = this.modalService.open(framework.ProgresoModal);
     modalRef.componentInstance.Mensaje = "Guardando pago";
     this.planillaService.ActualizarPago(this.PagoMensual)
      .subscribe(result => { modalRef.close() }, 
                 error => { 
                      modalRef.close();
                     console.log(error); 
                 });  
 }
Example #2
0
 open(content) {
   this.modalService.open(content, {ariaLabelledBy: 'modal-basic-title'}).result.then((result) => {
     this.closeResult = `Closed with: ${result}`;
   }, (reason) => {
     this.closeResult = `Dismissed ${this.getDismissReason(reason)}`;
   });
 }
Example #3
0
  private open_modal(content) {
    this.ngbModalService.open(content).result.then((result) => {

    }, (reason) => {
        console.log(reason);
    });
  }
Example #4
0
 openConfirmCompleteModal(confirmCompleteModal): void {
   this.modalService.open(confirmCompleteModal).result.then((result) => {
     if ('yes' === result) {
       this.listService.completeItems(this.department);
     }
   });
 }
 private openDeleteCollectionModal(content) {
     this.modalService.open(content).result.then((result) => {
         if(result == 'confirm')
             this.deleteCollection();
     }, (reason) => {
     });
 }
   openContactSupportModal(log = null) {
   const modalRef = this.modalService.open(ContactSupportModalComponent, {
       size: "lg",
       backdrop: "static", // don't close on backdrop click
   });
   modalRef.componentInstance.log = log;
 }
 open(content) {
   this.modalService.open(content).result.then((result) => {
     this.closeResult = `Closed with: ${result}`;
   }, (reason) => {
     this.closeResult = `Dismissed ${this.getDismissReason(reason)}`;
   });
 }
Example #8
0
    deploy() {
        let deployed: boolean = true;

        // close the draw as we no longer need it
        this.activeDrawer.close();
        const confirmModalRef = this.modalService.open(ReplaceComponent);
        confirmModalRef.componentInstance.mainMessage = 'Your Business Network Definition currently in the Playground will be removed & replaced.';
        confirmModalRef.componentInstance.supplementaryMessage = 'Please ensure that you have exported any current model files in the Playground.';
        confirmModalRef.componentInstance.resource = 'definition';
        return confirmModalRef.result.then((result) => {
            if (result === true) {
                this.deployInProgress = true;
                return this.sampleBusinessNetworkService.updateBusinessNetwork(this.currentBusinessNetwork);
            } else {
                deployed = false;
            }
        })
            .then(() => {
                this.deployInProgress = false;
                this.finishedSampleImport.emit({deployed: deployed});
            })
            .catch((error) => {
                this.deployInProgress = false;
                this.alertService.errorStatus$.next(error);
                this.finishedSampleImport.emit({deployed: false, error: error});
            });
    }
 openDatasetHistoryModal(dataset: Dataset, sessionData: SessionData) {
   const modalRef = this.ngbModal.open(DatasetHistorymodalComponent, {
     size: "lg"
   });
   modalRef.componentInstance.dataset = dataset;
   modalRef.componentInstance.sessionData = sessionData;
 }
 staticModalShow() {
   const activeModal = this.modalService.open(DefaultModal, {size: 'sm',
                                                             backdrop: 'static'});
   activeModal.componentInstance.modalHeader = 'Static modal';
   activeModal.componentInstance.modalContent = `This is static modal, backdrop click
                                                   will not close it. Click × or confirmation button to close modal.`;
 }