@byu-oit/vue-decision-processing-components 9.5.0 → 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 +10 -5
- package/package.json +1 -1
package/Report.vue
CHANGED
|
@@ -81,6 +81,7 @@ import ReportSvg from './ReportSvg.vue'
|
|
|
81
81
|
import Reports from './vuexModules/reports'
|
|
82
82
|
import DatePicker from 'vue2-datepicker'
|
|
83
83
|
import ByuDateSelector from "./ByuDateSelector.vue"
|
|
84
|
+
import { mapState } from 'vuex'
|
|
84
85
|
|
|
85
86
|
let tabHiddenState = document.hidden
|
|
86
87
|
|
|
@@ -141,6 +142,10 @@ export default {
|
|
|
141
142
|
}
|
|
142
143
|
},
|
|
143
144
|
computed: {
|
|
145
|
+
...mapState({
|
|
146
|
+
institution: state => state.ui.institution,
|
|
147
|
+
env: state => state.environment
|
|
148
|
+
}),
|
|
144
149
|
metadata () {
|
|
145
150
|
return this.$store.getters.reportMetadata(this.reportName)
|
|
146
151
|
},
|
|
@@ -186,8 +191,8 @@ export default {
|
|
|
186
191
|
}
|
|
187
192
|
// appends institution if available to url search params
|
|
188
193
|
if(this.metadata.parameters.includes('institutions')) {
|
|
189
|
-
if(this.metadata.parameters.institutions.includes(
|
|
190
|
-
q.append('institution',
|
|
194
|
+
if(this.metadata.parameters.institutions.includes(this.institution))
|
|
195
|
+
q.append('institution', this.institution)
|
|
191
196
|
}
|
|
192
197
|
|
|
193
198
|
const url = this.baseUrl + '?' + q.toString()
|
|
@@ -291,8 +296,8 @@ export default {
|
|
|
291
296
|
}
|
|
292
297
|
// appends institution if available to url search params
|
|
293
298
|
if(this.metadata.parameters.includes('institutions')) {
|
|
294
|
-
if(this.metadata.parameters.institutions.includes(
|
|
295
|
-
q.append('institution',
|
|
299
|
+
if(this.metadata.parameters.institutions.includes(this.institution))
|
|
300
|
+
q.append('institution', this.institution)
|
|
296
301
|
}
|
|
297
302
|
return q
|
|
298
303
|
},
|
|
@@ -301,7 +306,7 @@ export default {
|
|
|
301
306
|
const base = this.env === 'development'
|
|
302
307
|
? 'https://api-sandbox.byu.edu'
|
|
303
308
|
: 'https://api.byu.edu'
|
|
304
|
-
const institution =
|
|
309
|
+
const institution = this.institution
|
|
305
310
|
const response = await fetch(`${base}/domain/applications/${institution}/admission/v1/configs`)
|
|
306
311
|
const json = await response.json()
|
|
307
312
|
this.configs = [...json.closed, ...json.open]
|
package/package.json
CHANGED