Browse Source

Remove console logging and commented code

master
Brian Conway 2 years ago
parent
commit
da49e43de2

+ 0
- 17
src/components/user/updateAgentProfile.vue View File

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

+ 0
- 17
src/components/user/updateProfileInfo.vue View File

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

Loading…
Cancel
Save