diff --git a/ui/app/models/allocation.js b/ui/app/models/allocation.js index 377904da8..f93f19175 100644 --- a/ui/app/models/allocation.js +++ b/ui/app/models/allocation.js @@ -48,6 +48,7 @@ export default Model.extend({ preemptedAllocations: hasMany('allocation', { inverse: 'preemptedByAllocation' }), preemptedByAllocation: belongsTo('allocation', { inverse: 'preemptedAllocations' }), + wasPreempted: attr('boolean'), followUpEvaluation: belongsTo('evaluation'), diff --git a/ui/app/serializers/allocation.js b/ui/app/serializers/allocation.js index 50f2b004d..a629451d9 100644 --- a/ui/app/serializers/allocation.js +++ b/ui/app/serializers/allocation.js @@ -47,6 +47,7 @@ export default ApplicationSerializer.extend({ hash.PreemptedAllocationIDs = hash.PreemptedAllocations || []; hash.PreemptedByAllocationID = hash.PreemptedByAllocation || null; + hash.WasPreempted = !!hash.PreemptedByAllocationID; return this._super(typeHash, hash); },