@byu-oit/vue-decision-processing-components 9.0.3 → 9.0.4

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.
Files changed (2) hide show
  1. package/FlagDialog.vue +8 -2
  2. package/package.json +1 -1
package/FlagDialog.vue CHANGED
@@ -91,8 +91,14 @@ export default {
91
91
  this.editing = true
92
92
  },
93
93
  updateFlag () {
94
- const {isSet, isCleared} = this.flag
95
- const newFlagState = isSet ? isCleared ? 'set' : 'clear' : 'set'
94
+ let newFlagState;
95
+ if (this.flag.state != null && this.flag.state != '') {
96
+ newFlagState = ['indeterminate', 'pass'].includes(this.flag.state.toLowerCase()) ? 'set' : 'clear'
97
+ }
98
+ else {
99
+ const {isSet, isCleared} = this.flag
100
+ newFlagState = isSet ? isCleared ? 'set' : 'clear' : 'set'
101
+ }
96
102
  return this.flagUpdate({
97
103
  applicationUuid: this.appId,
98
104
  flagState: newFlagState,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byu-oit/vue-decision-processing-components",
3
- "version": "9.0.3",
3
+ "version": "9.0.4",
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",