diff --git a/ui/app/models/allocation.js b/ui/app/models/allocation.js index ffe55cff2..048e31e55 100644 --- a/ui/app/models/allocation.js +++ b/ui/app/models/allocation.js @@ -86,8 +86,8 @@ export default Model.extend({ 'followUpEvaluation', function() { return ( - !this.get('nextAllocation') && - !this.get('followUpEvaluation') && + !this.get('nextAllocation.content') && + !this.get('followUpEvaluation.content') && this.get('clientStatus') === 'failed' ); } diff --git a/ui/app/templates/allocations/allocation/index.hbs b/ui/app/templates/allocations/allocation/index.hbs index 8356eefa7..c26fb9a23 100644 --- a/ui/app/templates/allocations/allocation/index.hbs +++ b/ui/app/templates/allocations/allocation/index.hbs @@ -91,5 +91,45 @@ {{/list-table}} + + {{#if model.hasRescheduleEvents}} +
{{allocation.shortId}}
- {{/link-to}}
- {{else}}
- {{allocation.shortId}}
- {{/if}}
-
-
- Client
-
- {{#link-to "clients.client" allocation.node.id}}
- {{allocation.node.id}}
- {{/link-to}}
-
-
+ {{#unless linkToAllocation}}
+ {{allocation.shortId}}
+ {{/link-to}}
+ {{else}}
+ {{allocation.shortId}}
+ {{/if}}
+
+
+ Client
+
+ {{#link-to "clients.client" allocation.node.id}}
+ {{allocation.node.id}}
+ {{/link-to}}
+
+
+