@byu-oit/vue-decision-processing-components
Advanced tools
Comparing version 8.36.2 to 8.37.0-0
{ | ||
"name": "@byu-oit/vue-decision-processing-components", | ||
"version": "8.36.2", | ||
"version": "8.37.0-0", | ||
"description": "Vue components shared between decision processing systems for the CES schools.", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -15,2 +15,4 @@ import { parsePacketNotes } from './notes' | ||
const type = get(f, 'type.value') | ||
const state = get(f, 'state.value') | ||
const message = get(f, 'message.value') | ||
return { | ||
@@ -25,3 +27,5 @@ dateTimeCleared, | ||
clearedById, | ||
type | ||
type, | ||
state, | ||
message | ||
} | ||
@@ -28,0 +32,0 @@ } |
@@ -20,2 +20,7 @@ import Vue from 'vue' | ||
const endorseVirtualFlag = flags => { | ||
// Get new endorsement flag data | ||
const endorsementNewFlag = flags.filter(f => f.value === 'endorsement') | ||
if(endorsementNewFlag.length > 0) return endorsementNewFlag[0] | ||
// Maintain old functionality | ||
const edFlag = flags.filter(f => f.value === 'ED').filter(f => f.isActive) | ||
@@ -25,6 +30,8 @@ const eiFlag = flags.filter(f => f.value === 'EI').filter(f => f.isActive) | ||
if (allFlags.length > 0) return allFlags[0] | ||
const value = 'endorse' | ||
// Default if no flag data is found | ||
const value = 'endorsement' | ||
const name = 'Endorsement Problem' | ||
const type = 'Process' | ||
return { value, name, type, isActive: false, isSet: false, isCleared: false, isBlocking: true } | ||
return { value, name, type, isActive: false, isSet: false, isCleared: false, isBlocking: true, state: 'indeterminate' } | ||
} | ||
@@ -43,3 +50,3 @@ | ||
return blockingVirtualFlag(flags) | ||
} else if (flagValue === 'endorse') { | ||
} else if (flagValue === 'endorsement') { | ||
return endorseVirtualFlag(flags) | ||
@@ -92,3 +99,5 @@ } | ||
dateTimeCleared, | ||
clearedBy | ||
clearedBy, | ||
state, | ||
message | ||
} = flag | ||
@@ -107,3 +116,5 @@ const isBlocking = /process|wait/i.test(type) | ||
clearedBy, | ||
isBlocking | ||
isBlocking, | ||
state, | ||
message | ||
} | ||
@@ -110,0 +121,0 @@ } |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
450630
4176
2