@@ -178,8 +178,6 @@ export class OrgInfoComponent implements OnInit, OnDestroy {
178178 getProfile ( ) {
179179 this . contactmediums = [ ] ;
180180 this . accountService . getOrgInfo ( this . partyId ) . then ( data => {
181- console . log ( '--org info--' )
182- console . log ( data )
183181 this . profile = data ;
184182 this . loadProfileData ( this . profile )
185183 this . loading = false ;
@@ -217,7 +215,6 @@ export class OrgInfoComponent implements OnInit, OnDestroy {
217215 } )
218216 }
219217 for ( let i = 0 ; i < this . contactmediums . length ; i ++ ) {
220- console . log ( this . contactmediums )
221218 if ( this . contactmediums [ i ] . mediumType == 'Email' ) {
222219 mediums . push ( {
223220 mediumType : 'Email' ,
@@ -227,7 +224,6 @@ export class OrgInfoComponent implements OnInit, OnDestroy {
227224 emailAddress : this . contactmediums [ i ] . characteristic . emailAddress
228225 }
229226 } )
230- console . log ( this . contactmediums [ i ] )
231227 } else if ( this . contactmediums [ i ] . mediumType == 'PostalAddress' ) {
232228 mediums . push ( {
233229 mediumType : this . contactmediums [ i ] . mediumType ,
@@ -258,7 +254,6 @@ export class OrgInfoComponent implements OnInit, OnDestroy {
258254 "contactMedium" : mediums ,
259255 "partyCharacteristic" : chars
260256 }
261- console . log ( profile )
262257 this . accountService . updateOrgInfo ( this . partyId , profile ) . subscribe ( {
263258 next : data => {
264259 this . profileForm . reset ( ) ;
@@ -272,7 +267,6 @@ export class OrgInfoComponent implements OnInit, OnDestroy {
272267 error : error => {
273268 console . error ( 'There was an error while updating!' , error ) ;
274269 if ( error . error . error ) {
275- console . log ( error )
276270 this . errorMessage = 'Error: ' + error . error . error ;
277271 } else {
278272 this . errorMessage = 'There was an error while updating profile!' ;
@@ -349,7 +343,6 @@ export class OrgInfoComponent implements OnInit, OnDestroy {
349343 const phoneNumber = parsePhoneNumber ( this . phonePrefix . code + this . mediumForm . value . telephoneNumber ) ;
350344 if ( phoneNumber ) {
351345 if ( ! phoneNumber . isValid ( ) ) {
352- console . log ( 'NUMERO INVALIDO' )
353346 this . mediumForm . controls [ 'telephoneNumber' ] . setErrors ( { 'invalidPhoneNumber' : true } ) ;
354347 this . toastVisibility = true ;
355348 setTimeout ( ( ) => {
@@ -415,7 +408,6 @@ export class OrgInfoComponent implements OnInit, OnDestroy {
415408 }
416409 }
417410 this . mediumForm . reset ( ) ;
418- console . log ( this . contactmediums )
419411 }
420412
421413 removeMedium ( medium :any ) {
@@ -477,7 +469,6 @@ export class OrgInfoComponent implements OnInit, OnDestroy {
477469 const phoneNumber = parsePhoneNumber ( this . phonePrefix . code + this . mediumForm . value . telephoneNumber ) ;
478470 if ( phoneNumber ) {
479471 if ( ! phoneNumber . isValid ( ) ) {
480- console . log ( 'NUMERO INVALIDO' )
481472 this . mediumForm . controls [ 'telephoneNumber' ] . setErrors ( { 'invalidPhoneNumber' : true } ) ;
482473 this . toastVisibility = true ;
483474 setTimeout ( ( ) => {
@@ -541,7 +532,6 @@ export class OrgInfoComponent implements OnInit, OnDestroy {
541532 }
542533
543534 selectPrefix ( pref :any ) {
544- console . log ( pref )
545535 this . prefixCheck = false ;
546536 this . phonePrefix = pref ;
547537 }
@@ -614,32 +604,22 @@ export class OrgInfoComponent implements OnInit, OnDestroy {
614604 this . mediumForm . get ( 'telephoneNumber' ) ?. setValue ( '' ) ;
615605 this . cdr . detectChanges ( ) ;
616606 }
617- console . log ( this . mediumForm )
618- console . log ( this . printAllActiveValidators ( ) ) ;
619607
620608 }
621609 showMedium ( ) {
622- console . log ( '--- SHOW MEDIUM' )
623- console . log ( this . mediumForm )
624- console . log ( this . printAllActiveValidators ( ) ) ;
625- console . log ( '--value' )
626- console . log ( this . mediumForm . get ( 'email' ) ?. value )
627610 }
628611
629612 printActiveValidators ( controlName : string ) {
630613 const control = this . mediumForm . get ( controlName ) ;
631614 if ( ! control || ! control . validator ) {
632- console . log ( `No active validators for ${ controlName } ` ) ;
633615 return ;
634616 }
635617
636618 const validatorFn = control . validator ( { } as AbstractControl ) ;
637619 if ( ! validatorFn ) {
638- console . log ( `No active validators for ${ controlName } ` ) ;
639620 return ;
640621 }
641622
642- console . log ( `Active validators for ${ controlName } :` , Object . keys ( validatorFn ) ) ;
643623 }
644624
645625 printAllActiveValidators ( ) {
@@ -658,14 +638,11 @@ export class OrgInfoComponent implements OnInit, OnDestroy {
658638 if ( droppedFile . fileEntry . isFile ) {
659639 const fileEntry = droppedFile . fileEntry as FileSystemFileEntry ;
660640 fileEntry . file ( ( file : File ) => {
661- console . log ( 'dropped' )
662641
663642 if ( file ) {
664643 const reader = new FileReader ( ) ;
665644 reader . onload = ( e : any ) => {
666645 const base64String : string = e . target . result . split ( ',' ) [ 1 ] ;
667- console . log ( 'BASE 64....' )
668- console . log ( base64String ) ; // You can use this base64 string as needed
669646 let fileBody = {
670647 content : {
671648 name : 'orglogo' + file . name ,
@@ -695,7 +672,6 @@ export class OrgInfoComponent implements OnInit, OnDestroy {
695672 }
696673 this . attachmentService . uploadFile ( fileBody ) . subscribe ( {
697674 next : data => {
698- console . log ( data )
699675 if ( sel == 'img' ) {
700676 if ( file . type . startsWith ( "image" ) ) {
701677 this . showImgPreview = true ;
@@ -709,12 +685,10 @@ export class OrgInfoComponent implements OnInit, OnDestroy {
709685 }
710686 }
711687 this . cdr . detectChanges ( ) ;
712- console . log ( 'uploaded' )
713688 } ,
714689 error : error => {
715690 console . error ( 'There was an error while uploading!' , error ) ;
716691 if ( error . error . error ) {
717- console . log ( error )
718692 this . errorMessage = 'Error: ' + error . error . error ;
719693 } else {
720694 this . errorMessage = 'There was an error while uploading the file!' ;
@@ -736,7 +710,6 @@ export class OrgInfoComponent implements OnInit, OnDestroy {
736710 } else {
737711 // It was a directory (empty directories are added, otherwise only files)
738712 const fileEntry = droppedFile . fileEntry as FileSystemDirectoryEntry ;
739- console . log ( droppedFile . relativePath , fileEntry ) ;
740713 }
741714 }
742715 }
@@ -746,12 +719,9 @@ export class OrgInfoComponent implements OnInit, OnDestroy {
746719 }
747720
748721 public fileOver ( event : any ) {
749- console . log ( event ) ;
750722 }
751723
752724 public fileLeave ( event : any ) {
753- console . log ( 'leave' )
754- console . log ( event ) ;
755725 }
756726
757727 saveImgFromURL ( ) {
0 commit comments