File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed
client/src/pages/DataView360/View Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ class View360 extends Component {
86
86
} ) ;
87
87
} )
88
88
}
89
- debugger ;
89
+
90
90
this . setState ( {
91
91
participantData : response . result ,
92
92
animalData : animalInfo ,
@@ -164,12 +164,13 @@ class View360 extends Component {
164
164
< AnimalInfo pets = { _ . get ( this . state , 'animalData' ) }
165
165
events = { _ . get ( this . state , 'adoptionEvents' ) }
166
166
headerText = { "Adoption Records" }
167
- adoption_person_id =
167
+ shelterluv_id = { _ . get ( this . state , 'participantData.shelterluv_id' ) }
168
168
169
169
/>
170
170
< AnimalInfo pets = { _ . get ( this . state , 'animalData' ) }
171
171
events = { _ . get ( this . state , 'fosterEvents' ) }
172
172
headerText = { "Foster Records" }
173
+ shelterluv_id = { _ . get ( this . state , 'participantData.shelterluv_id' ) }
173
174
/>
174
175
< VolunteerActivity volunteer = { this . extractVolunteerActivity ( ) } />
175
176
< VolunteerHistory volunteerShifts = { _ . get ( this . state , 'participantData.shifts' ) } />
Original file line number Diff line number Diff line change @@ -57,15 +57,15 @@ class AnimalInfo extends Component {
57
57
const latestPets = this . getLatestPets ( this . props . pets , events ) ;
58
58
const headerText = this . props . headerText ;
59
59
const headerAddition = ( numOfPets > PET_COUNT ) ? " (Showing " + PET_COUNT + " Pets out of " + numOfPets + ")" : ""
60
- const shelterLuvPersonURL = `https://www.shelterluv.com/phlp-p-${ this . props . adoption_person_id } `
60
+ const shelterLuvPersonURL = `https://www.shelterluv.com/phlp-p-${ this . props . shelterluv_id } ` ;
61
61
62
62
return (
63
63
< Container component = { Paper } style = { { "marginTop" : "1em" } } >
64
64
< DataTableHeader headerText = { headerText + headerAddition }
65
65
emojiIcon = { < PetsIcon color = 'primary' fontSize = 'inherit' /> }
66
66
>
67
67
< Grid item >
68
- < IconButton style = { { 'padding' : 0 , 'paddingLeft' : 5 } } color = "primary" aria-label = "link" href = { shelterLuvPersonURL } >
68
+ < IconButton style = { { 'padding' : 0 , 'paddingLeft' : 5 } } color = "primary" aria-label = "link" href = { shelterLuvPersonURL } target = "_blank" >
69
69
< LinkIcon />
70
70
</ IconButton >
71
71
</ Grid >
Original file line number Diff line number Diff line change @@ -98,6 +98,10 @@ def get_360(matching_id):
98
98
99
99
result ['shifts' ] = volgisticsshifts_results
100
100
101
+ if row ["source_type" ] == "shelterluvpeople" :
102
+ shelterluv_id = row ["source_id" ]
103
+ result ["shelterluv_id" ] = shelterluv_id
104
+
101
105
return jsonify ({'result' : result })
102
106
103
107
You can’t perform that action at this time.
0 commit comments