@byu-oit/vue-decision-processing-components 8.37.0-1 → 8.37.0-3

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.
@@ -80,11 +80,11 @@ export default {
80
80
  case 'fail':
81
81
  return 'Requires additional attention.'
82
82
  case 'error':
83
- return 'An error occurred. Try again later.'
83
+ return 'An error occurred. Could not find a unique match.'
84
84
  case 'indeterminate':
85
85
  return 'No data available.'
86
86
  default:
87
- return 'An error occurred. Try again later.'
87
+ return 'An error occurred. Could not find a unique match.'
88
88
  }
89
89
  }
90
90
  }
@@ -83,6 +83,18 @@
83
83
  }
84
84
  },
85
85
  btnText () {
86
+ if (this.flag.state != null && this.flag.state != '') {
87
+ switch (this.flag.state.toLowerCase()){
88
+ case 'pass':
89
+ return 'set flag'
90
+ case 'fail':
91
+ return 'clear flag'
92
+ case 'error':
93
+ return 'clear flag'
94
+ case 'indeterminate':
95
+ return 'set flag'
96
+ }
97
+ }
86
98
  return this.flag.isActive ? 'clear flag' : 'set flag'
87
99
  },
88
100
  flagIcon () {
@@ -90,7 +102,7 @@
90
102
  if (this.flag == null){
91
103
  return faSquare
92
104
  }
93
- if (this.flag.state != null){
105
+ if (this.flag.state != null && this.flag.state != '') {
94
106
  switch (this.flag.state.toLowerCase()){
95
107
  case 'pass':
96
108
  return faCheck
@@ -111,7 +123,7 @@
111
123
  if (this.flag == null){
112
124
  return `bg-${this.flagIndeterminateColor}`
113
125
  }
114
- if (this.flag.state != null){
126
+ if (this.flag.state != null && this.flag.state != ''){
115
127
  switch (this.flag.state.toLowerCase()){
116
128
  case 'pass':
117
129
  return `bg-${this.flagPassColor}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byu-oit/vue-decision-processing-components",
3
- "version": "8.37.0-1",
3
+ "version": "8.37.0-3",
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",