Link to allocations.allocation by ID reference, not by model (#17753)

This commit is contained in:
Phil Renaud
2023-06-28 10:00:59 -04:00
committed by GitHub
parent f3df01e422
commit 43587c5852
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@
{{#each this.history as |deployment-log|}}
<li class="timeline-object {{if (eq deployment-log.exitCode 1) "error"}}">
<div class="boxed-section-head is-light">
<LinkTo @route="allocations.allocation" @model={{deployment-log.state.allocation}} class="allocation-reference">{{deployment-log.state.allocation.shortId}}</LinkTo>
<LinkTo @route="allocations.allocation" @model={{deployment-log.state.allocation.id}} class="allocation-reference">{{deployment-log.state.allocation.shortId}}</LinkTo>
<span><strong>{{deployment-log.type}}:</strong> {{deployment-log.message}}</span>
<span class="pull-right">
{{format-ts deployment-log.time}}

View File

@@ -7,7 +7,7 @@
<ConditionalLinkTo
@condition={{not (eq @status "unplaced")}}
@route="allocations.allocation"
@model={{@allocation}}
@model={{@allocation.id}}
@class="represented-allocation {{@status}} {{@health}} {{@canary}}"
@label="View allocation"
>