X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fmodal%2Fcustom-modal.component.ts;h=49343ae71cbf0a429cccba5b5e37f8a8558bd4d4;hb=01a3c07a7913891d4830797403b3865d53f0af61;hp=559230e04b19b884c7a67d9705105362159c5dd5;hpb=9df52d660feb722404be00a50f3c8a612bec1c15;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/modal/custom-modal.component.ts b/client/src/app/modal/custom-modal.component.ts index 559230e04..49343ae71 100644 --- a/client/src/app/modal/custom-modal.component.ts +++ b/client/src/app/modal/custom-modal.component.ts @@ -1,5 +1,6 @@ -import { Component, ElementRef, ViewChild, Input } from '@angular/core' +import { Component, ElementRef, Input, ViewChild } from '@angular/core' import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap' +import { logger } from '@root-helpers/logger' @Component({ selector: 'my-custom-modal', @@ -29,7 +30,7 @@ export class CustomModalComponent { confirm?: { value: string, action?: () => void } }) { if (this.modalRef instanceof NgbModalRef && this.modalService.hasOpenModals()) { - console.error('Cannot open another custom modal, one is already opened.') + logger.error('Cannot open another custom modal, one is already opened.') return }