@byu-oit/vue-decision-processing-components 9.5.1 → 9.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Report.vue +7 -6
- package/package.json +1 -1
package/Report.vue
CHANGED
|
@@ -143,7 +143,8 @@ export default {
|
|
|
143
143
|
},
|
|
144
144
|
computed: {
|
|
145
145
|
...mapState({
|
|
146
|
-
institution: state => state.ui.institution
|
|
146
|
+
institution: state => state.ui.institution,
|
|
147
|
+
env: state => state.environment
|
|
147
148
|
}),
|
|
148
149
|
metadata () {
|
|
149
150
|
return this.$store.getters.reportMetadata(this.reportName)
|
|
@@ -190,8 +191,8 @@ export default {
|
|
|
190
191
|
}
|
|
191
192
|
// appends institution if available to url search params
|
|
192
193
|
if(this.metadata.parameters.includes('institutions')) {
|
|
193
|
-
if(this.metadata.parameters.institutions.includes(
|
|
194
|
-
q.append('institution',
|
|
194
|
+
if(this.metadata.parameters.institutions.includes(this.institution))
|
|
195
|
+
q.append('institution', this.institution)
|
|
195
196
|
}
|
|
196
197
|
|
|
197
198
|
const url = this.baseUrl + '?' + q.toString()
|
|
@@ -295,8 +296,8 @@ export default {
|
|
|
295
296
|
}
|
|
296
297
|
// appends institution if available to url search params
|
|
297
298
|
if(this.metadata.parameters.includes('institutions')) {
|
|
298
|
-
if(this.metadata.parameters.institutions.includes(
|
|
299
|
-
q.append('institution',
|
|
299
|
+
if(this.metadata.parameters.institutions.includes(this.institution))
|
|
300
|
+
q.append('institution', this.institution)
|
|
300
301
|
}
|
|
301
302
|
return q
|
|
302
303
|
},
|
|
@@ -305,7 +306,7 @@ export default {
|
|
|
305
306
|
const base = this.env === 'development'
|
|
306
307
|
? 'https://api-sandbox.byu.edu'
|
|
307
308
|
: 'https://api.byu.edu'
|
|
308
|
-
const institution =
|
|
309
|
+
const institution = this.institution
|
|
309
310
|
const response = await fetch(`${base}/domain/applications/${institution}/admission/v1/configs`)
|
|
310
311
|
const json = await response.json()
|
|
311
312
|
this.configs = [...json.closed, ...json.open]
|
package/package.json
CHANGED