@byu-oit/vue-decision-processing-components 8.32.1 → 8.32.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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
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.32.2](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.32.1...v8.32.2) (2022-12-15)
6
+
5
7
  ### [8.32.1](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.32.0...v8.32.1) (2022-12-06)
6
8
 
7
9
  ## [8.32.0](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.31.0...v8.32.0) (2022-12-02)
package/DetailsHeader.vue CHANGED
@@ -33,7 +33,7 @@
33
33
  <div class="actions bg-light text-body">
34
34
  <slot name="actionsCompact"></slot>
35
35
  </div>
36
- <div class="bug">
36
+ <div class="bug" v-if="!hideBug">
37
37
  <button class="btn btn-sm btn-outline-warning" title="Submit an incident" @click="openSupportModal">
38
38
  <font-awesome-icon :icon="bug" />
39
39
  </button>
@@ -59,7 +59,7 @@
59
59
  <div class="actions bg-light text-body">
60
60
  <slot name="actions"></slot>
61
61
  </div>
62
- <div class="bug">
62
+ <div class="bug" v-if="!hideBug">
63
63
  <button class="btn btn-sm btn-outline-warning" @click="openSupportModal">
64
64
  <font-awesome-icon :icon="bug" />
65
65
  </button>
@@ -92,6 +92,10 @@ export default {
92
92
  type: Boolean,
93
93
  default: false
94
94
  },
95
+ hideBug:{
96
+ type:Boolean,
97
+ default: false
98
+ },
95
99
  appId: {
96
100
  type: String
97
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byu-oit/vue-decision-processing-components",
3
- "version": "8.32.1",
3
+ "version": "8.32.2",
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",
@@ -1,15 +1,17 @@
1
- const parseCategories = (c = []) => c.map(cc => cc.description)
2
- const parseSubcategories = (c = []) => c.map(({ name = '', description = '' }) => ({ name, description }))
3
- const parseDetails = (d = []) => d.map(dd => dd.detail)
4
- const parseName = ({ name = '' }) => name
1
+ const parseId = (c = []) => c.id
2
+ const parseCategories = (c = []) => cc.category_name
3
+ const parseSubcategories = (c = []) => c.subcategory_name
4
+ const parseDetails = (d = []) => d.detail
5
+ const parseUpdatedDateTime = (t = []) => t.updated_date_time
6
+ const parseName = (n) => n.employee_name
5
7
 
6
8
  const parseFilenote = note => {
7
- const id = note.id
8
- const categories = parseCategories(note.categories)
9
- const subcategories = parseSubcategories(note.subcategories)
10
- const details = parseDetails(note.details)
11
- const updatedOn = note.updatedDateTime
12
- const author = parseName(note.author)
9
+ const id = parseId(note)
10
+ const categories = parseCategories(note)
11
+ const subcategories = parseSubcategories(note)
12
+ const details = parseDetails(note)
13
+ const updatedOn = parseUpdatedDateTime(note)
14
+ const author = parseName(note)
13
15
  return {
14
16
  id,
15
17
  categories,
@@ -21,5 +23,5 @@ const parseFilenote = note => {
21
23
  }
22
24
 
23
25
  export default (values = []) => {
24
- return values.map(parseFilenote)
26
+ return parseFilenote(values)
25
27
  }