Parcourir la source

Remove console logging and commented code

master
Brian Conway il y a 2 ans
Parent
révision
da49e43de2

+ 0
- 17
src/components/user/updateAgentProfile.vue Voir le fichier

@@ -311,7 +311,6 @@ export default {
311 311
       } else {
312 312
         this.agent = this.indiv
313 313
         this.agent.email = this.indiv.emailAddress
314
-        console.log(this.indiv)
315 314
         this.agent.user = Log.getUser()
316 315
       }
317 316
     })
@@ -356,15 +355,10 @@ export default {
356 355
             this.agent.user.role === 'Agency' ||
357 356
             this.agent.user.role === 'Managing Agent'
358 357
           ) {
359
-            console.log('saveAgent')
360
-            console.log(this.agent)
361 358
             this.saveAgent(this.agent)
362 359
               .then(() => {
363
-                console.log('saveAgent 1')
364
-                console.log(this.agent)
365 360
                 this.boolMessage = true
366 361
                 if (Log.getUser().role === 'Super Admin') {
367
-                  console.log(this.agent)
368 362
                   if (
369 363
                     this.agent.id ===
370 364
                     JSON.parse(localStorage.getItem('person')).id
@@ -393,12 +387,8 @@ export default {
393 387
                 }
394 388
               })
395 389
               .catch((err) => {
396
-                console.log(err)
397
-                this.errorOccurred = 'ERRORHTML'
398
-
399 390
                 this.errorOccurred = 'ERROR'
400 391
                 this.errorMessage = 'Server Error: CONNECTION_REFUSED'
401
-                console.log(err.status)
402 392
                 if (err.status) {
403 393
                   if (err.data.message) {
404 394
                     this.errorMessage = err.data.message
@@ -411,13 +401,10 @@ export default {
411 401
             this.updateAgent(this.agent).then(() => {
412 402
               this.boolMessage = true
413 403
               if (Log.getUser().role === 'Super Admin') {
414
-                console.log('updateIndividual')
415
-                console.log(this.agent)
416 404
                 if (
417 405
                   this.agent.id ===
418 406
                   JSON.parse(localStorage.getItem('person')).id
419 407
                 ) {
420
-                  console.log('here 1')
421 408
                   var newPerson = {
422 409
                     id: JSON.parse(localStorage.getItem('person')).id,
423 410
                     email: this.agent.email,
@@ -430,7 +417,6 @@ export default {
430 417
                 }
431 418
                 //this.$router.push('/status/userManagementPage')
432 419
               } else {
433
-                console.log('here 2')
434 420
                 var newPerson = {
435 421
                   id: JSON.parse(localStorage.getItem('person')).id,
436 422
                   email: this.agent.email,
@@ -471,7 +457,6 @@ export default {
471 457
       }
472 458
     },
473 459
     validatePage: function () {
474
-      console.log('validatePage')
475 460
       if (
476 461
         this.agent.name &&
477 462
         this.agent.surname &&
@@ -482,14 +467,12 @@ export default {
482 467
         this.validPhoneNumber(this.agent.cellNumber) &&
483 468
         this.validPhoneNumber(this.agent.telephone)
484 469
       ) {
485
-        console.log('passed')
486 470
         this.errorOccurred = ''
487 471
         this.errorMessage = ''
488 472
         this.boolValidationError = false
489 473
 
490 474
         return true
491 475
       } else {
492
-        console.log('failed')
493 476
         this.nameLoad = true
494 477
         this.surnameLoad = true
495 478
         this.emailAddressLoadLoad = true

+ 0
- 17
src/components/user/updateProfileInfo.vue Voir le fichier

@@ -580,7 +580,6 @@ export default {
580 580
       } else {
581 581
         this.individual = this.indiv
582 582
         this.individual.email = this.indiv.emailAddress
583
-        console.log(this.indiv)
584 583
         this.individual.user = Log.getUser()
585 584
       }
586 585
       this.getAgencies()
@@ -640,15 +639,10 @@ export default {
640 639
             this.individual.user.role === 'Agent' ||
641 640
             this.individual.user.role === 'Managing Agent'
642 641
           ) {
643
-            console.log('saveAgent')
644
-            console.log(this.individual)
645 642
             this.saveAgent(this.individual)
646 643
               .then(() => {
647
-                console.log('saveAgent 1')
648
-                console.log(this.individual)
649 644
                 this.boolMessage = true
650 645
                 if (Log.getUser().role === 'Super Admin') {
651
-                  console.log(this.individual)
652 646
                   if (
653 647
                     this.individual.id ===
654 648
                     JSON.parse(localStorage.getItem('person')).id
@@ -679,12 +673,8 @@ export default {
679 673
                 }
680 674
               })
681 675
               .catch((err) => {
682
-                console.log(err)
683
-                this.errorOccurred = 'ERRORHTML'
684
-
685 676
                 this.errorOccurred = 'ERROR'
686 677
                 this.errorMessage = 'Server Error: CONNECTION_REFUSED'
687
-                console.log(err.status)
688 678
                 if (err.status) {
689 679
                   if (err.data.message) {
690 680
                     this.errorMessage = err.data.message
@@ -697,13 +687,10 @@ export default {
697 687
             this.updateIndividual(this.individual).then(() => {
698 688
               this.boolMessage = true
699 689
               if (Log.getUser().role === 'Super Admin') {
700
-                console.log('updateIndividual')
701
-                console.log(this.individual)
702 690
                 if (
703 691
                   this.individual.id ===
704 692
                   JSON.parse(localStorage.getItem('person')).id
705 693
                 ) {
706
-                  console.log('here 1')
707 694
                   var newPerson = {
708 695
                     id: JSON.parse(localStorage.getItem('person')).id,
709 696
                     email: this.individual.email,
@@ -717,7 +704,6 @@ export default {
717 704
                 }
718 705
                 //this.$router.push('/status/userManagementPage')
719 706
               } else {
720
-                console.log('here 2')
721 707
                 var newPerson = {
722 708
                   id: JSON.parse(localStorage.getItem('person')).id,
723 709
                   email: this.individual.email,
@@ -759,7 +745,6 @@ export default {
759 745
       }
760 746
     },
761 747
     validatePage: function () {
762
-      console.log('validatePage')
763 748
       if (
764 749
         this.individual.name &&
765 750
         this.individual.surname &&
@@ -770,14 +755,12 @@ export default {
770 755
         this.validPhoneNumber(this.individual.cellNumber) &&
771 756
         this.validPhoneNumber(this.individual.telephone)
772 757
       ) {
773
-        console.log('passed')
774 758
         this.errorOccurred = ''
775 759
         this.errorMessage = ''
776 760
         this.boolValidationError = false
777 761
 
778 762
         return true
779 763
       } else {
780
-        console.log('failed')
781 764
         this.nameLoad = true
782 765
         this.surnameLoad = true
783 766
         this.emailAddressLoadLoad = true

Chargement…
Annuler
Enregistrer