|
39 | 39 | </template>
|
40 | 40 | </ul>
|
41 | 41 | </uw-card-property>
|
42 |
| - <!-- commenting out residency for MUWM-5290 |
43 |
| - <uw-card-property v-if="showResidency" title="Residency"> |
44 |
| - {{residentDisplayString}} |
45 |
| - <br><a v-out="'About residency statuses'" |
46 |
| - href="https://registrar.washington.edu/students/residency/" |
47 |
| - title="About residency statuses" |
| 42 | + <uw-card-property v-if="showResidency" title="Residency"> |
| 43 | + {{residentDisplayString}} |
| 44 | + <span v-if="hasPendingResidencyChange"><br> |
| 45 | + Beginning {{ titleCaseWord(pendingResidencyChangeTerm.quarter) }} |
| 46 | + {{ pendingResidencyChangeTerm.year }}: |
| 47 | + Pending change in residency status |
| 48 | + </span> |
| 49 | + <br> |
| 50 | + <a v-out="'About residency statuses'" |
| 51 | + href="https://registrar.washington.edu/students/residency/" |
| 52 | + title="About residency statuses" |
48 | 53 | >About residency statuses</a>
|
49 | 54 | </uw-card-property>
|
50 |
| - --> |
51 | 55 | </uw-card-property-group>
|
52 | 56 | <uw-card-property-group>
|
53 | 57 | <uw-card-property title="Local Address">
|
@@ -153,6 +157,8 @@ export default {
|
153 | 157 | permanentPhone: (state) => state.value.permanent_phone,
|
154 | 158 | directoryRelease: (state) => state.value.directory_release,
|
155 | 159 | residentCode: (state) => state.value.resident_code,
|
| 160 | + hasPendingResidencyChange: (state) => state.value.has_pending_residency_change, |
| 161 | + pendingResidencyChangeTerm: (state) => state.value.pending_residency_change_term, |
156 | 162 | }),
|
157 | 163 | ...mapGetters('profile', {
|
158 | 164 | isReady: 'isReady',
|
@@ -180,10 +186,11 @@ export default {
|
180 | 186 | },
|
181 | 187 | residentDisplayString(){
|
182 | 188 | const resValues = ["1", "2"],
|
183 |
| - nonresValues = ["3", "4", "5", "6"]; |
| 189 | + nonresValues = ["3", "4", "6"]; |
184 | 190 | if(resValues.includes(this.residentCode)){
|
185 | 191 | return "Resident";
|
186 | 192 | }
|
| 193 | + if(this.residentCode === "5") return "Non-resident student visa"; |
187 | 194 | if(nonresValues.includes(this.residentCode)){
|
188 | 195 | return "Non-resident";
|
189 | 196 | }
|
|
0 commit comments