@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.
- package/FlagDialog.vue +8 -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
|
-
|
|
95
|
-
|
|
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