@byu-oit/vue-decision-processing-components 8.29.5 → 8.29.6
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/CHANGELOG.md +7 -0
- package/SupportDialog.vue +22 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [8.29.6](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.29.5...v8.29.6) (2022-11-02)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* updates incident body params ([d9f8ed3](https://github.com/byu-oit/vue-decision-processing-components/commit/d9f8ed34ed2b8b4c34a90d72fbc50658bef0d38f))
|
|
11
|
+
|
|
5
12
|
### [8.29.5](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.29.4...v8.29.5) (2022-10-10)
|
|
6
13
|
|
|
7
14
|
|
package/SupportDialog.vue
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<form v-else @submit.prevent="submitIssue">
|
|
31
31
|
<div class="modal-header bg-light">Submit Incident</div>
|
|
32
32
|
<div class="modal-body">
|
|
33
|
-
<div class="form-group">
|
|
33
|
+
<div class="form-group required">
|
|
34
34
|
<label for="short-description">Subject</label>
|
|
35
35
|
<input v-model="shortDescription" id="short-description" class="form-control" required>
|
|
36
36
|
</div>
|
|
@@ -38,6 +38,10 @@
|
|
|
38
38
|
<label for="description">Description</label>
|
|
39
39
|
<textarea v-model="description" id="description" class="form-control"></textarea>
|
|
40
40
|
</div>
|
|
41
|
+
<div class="form-group">
|
|
42
|
+
<label for="email">Reply-to Email</label>
|
|
43
|
+
<input v-model="email" id="email" class="form-control">
|
|
44
|
+
</div>
|
|
41
45
|
</div>
|
|
42
46
|
<div class="modal-footer">
|
|
43
47
|
<button class="btn btn-sm btn-outline-primary" type="submit" :disabled="loading">Submit</button>
|
|
@@ -62,6 +66,7 @@ export default {
|
|
|
62
66
|
return {
|
|
63
67
|
description: '',
|
|
64
68
|
shortDescription: '',
|
|
69
|
+
email: '',
|
|
65
70
|
success: false
|
|
66
71
|
}
|
|
67
72
|
},
|
|
@@ -103,9 +108,17 @@ export default {
|
|
|
103
108
|
this.$modal.hide('support-modal')
|
|
104
109
|
},
|
|
105
110
|
async submitIssue () {
|
|
106
|
-
const { preferredFirstName, surname } = window.byu.user
|
|
107
|
-
const callerId = `${preferredFirstName} ${surname}`
|
|
111
|
+
const { netId, preferredFirstName, surname } = window.byu.user
|
|
112
|
+
const callerId = netId ?? `${preferredFirstName} ${surname}`
|
|
108
113
|
// const serializedState = btoa(JSON.stringify(this.$store.state))
|
|
114
|
+
const body = {
|
|
115
|
+
service_offering: 'CES Admissions Application',
|
|
116
|
+
assignment_group: 'OIT-SpecOps Student Admin',
|
|
117
|
+
priority: '4',
|
|
118
|
+
caller_id: callerId,
|
|
119
|
+
short_description: this.shortDescription,
|
|
120
|
+
description: [this.description.trim(), '\n', callerId, location.href].join('\n')
|
|
121
|
+
}
|
|
109
122
|
const options = {
|
|
110
123
|
url: `https://${this.host}/domain/applications/${this.institutionSvc}/admission/v1/proxy/incident`,
|
|
111
124
|
method: 'POST',
|
|
@@ -113,12 +126,8 @@ export default {
|
|
|
113
126
|
'Content-Type': 'application/json',
|
|
114
127
|
},
|
|
115
128
|
body: JSON.stringify({
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
priority: '4',
|
|
119
|
-
caller_id: callerId,
|
|
120
|
-
short_description: this.shortDescription,
|
|
121
|
-
description: [this.description.trim(), '\n', callerId, location.href].join('\n')
|
|
129
|
+
...body,
|
|
130
|
+
...this.email !== '' && { u_email: this.email }
|
|
122
131
|
})
|
|
123
132
|
}
|
|
124
133
|
this.incrementFetchCount()
|
|
@@ -155,4 +164,8 @@ export default {
|
|
|
155
164
|
textarea.form-control {
|
|
156
165
|
height: 125px;
|
|
157
166
|
}
|
|
167
|
+
.required > label::after {
|
|
168
|
+
content: '*';
|
|
169
|
+
margin-left: 3px;
|
|
170
|
+
}
|
|
158
171
|
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byu-oit/vue-decision-processing-components",
|
|
3
|
-
"version": "8.29.
|
|
3
|
+
"version": "8.29.6",
|
|
4
4
|
"description": "Vue components shared between decision processing systems for the CES schools.",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@fortawesome/fontawesome-free": "^5.15.4",
|