@byu-oit/vue-decision-processing-components
Advanced tools
Comparing version 8.37.0-0 to 8.37.0-1
{ | ||
"name": "@byu-oit/vue-decision-processing-components", | ||
"version": "8.37.0-0", | ||
"version": "8.37.0-1", | ||
"description": "Vue components shared between decision processing systems for the CES schools.", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -37,2 +37,17 @@ import Vue from 'vue' | ||
const cesHoldsVirtualFlag = flags => { | ||
const cesHoldsFlag = flags.filter(f => f.value === 'cesHolds') | ||
if (cesHoldsFlag.length > 0) return cesHoldsFlag[0] | ||
const cesFlags = flags.find(f => f.value === 'CES') | ||
if (cesFlags != null) { | ||
return { ...cesFlags, state: 'fail' } | ||
} | ||
const value = 'cesHolds' | ||
const name = 'CES Standard Hold' | ||
const type = 'Process' | ||
return { value, name, type, isActive: false, isSet: false, isCleared: false, isBlocking: true, state: 'indeterminate' } | ||
} | ||
// getters | ||
@@ -51,2 +66,4 @@ export const getters = { | ||
return endorseVirtualFlag(flags) | ||
} else if (flagValue === 'cesHolds') { | ||
return cesHoldsVirtualFlag(flags) | ||
} | ||
@@ -53,0 +70,0 @@ const flag = flags.find(({ value }) => value === flagValue) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4190
449512