Skip to content

Commit bb92695

Browse files
committed
CrateRow: Use ember-link instead of LinkTo
1 parent c85a641 commit bb92695

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

app/components/crate-row.hbs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
<div local-class="crate-row" data-test-crate-row ...attributes>
22
<div local-class="description-box">
33
<div>
4-
<LinkTo
5-
@route="crate"
6-
@model={{@crate.id}}
7-
local-class="name"
8-
data-test-crate-link
9-
>
10-
{{ @crate.name }}
11-
</LinkTo>
4+
{{#let (link "crate" @crate.id) as |l|}}
5+
<a href={{l.url}} local-class="name" data-test-crate-link {{on "click" l.transitionTo}}>
6+
{{@crate.name}}
7+
</a>
8+
{{/let}}
129
<span local-class="version" data-test-version>v{{@crate.max_version}}</span>
1310
<CopyButton
1411
@copyText='{{@crate.name}} = "{{@crate.max_version}}"'

0 commit comments

Comments
 (0)