File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 22
22
<NavTabs aria-label =" {{ @crate.name }} crate subpages" local-class =" nav" as |nav|>
23
23
<nav .Tab
24
24
@link ={{ if
25
- ( eq this.router.currentRouteName " crate.version " )
26
- (link " crate.version" @crate @version.num )
25
+ @ versionNum
26
+ (link " crate.version" @crate @versionNum )
27
27
(link " crate.index" @crate )
28
28
}}
29
29
data-test-readme-tab
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { inject as service } from '@ember/service';
3
3
import Component from '@glimmer/component' ;
4
4
5
5
export default class CrateHeader extends Component {
6
- @service router ;
7
6
@service session ;
8
7
9
8
@computed ( 'args.crate.owner_user' , 'session.currentUser.id' )
Original file line number Diff line number Diff line change 1
1
{{ page-title this.crate.name }}
2
2
3
- <CrateHeader @crate ={{ this.crate }} @version ={{ this.currentVersion }} />
3
+ <CrateHeader
4
+ @crate ={{ this.crate }}
5
+ @version ={{ this.currentVersion }}
6
+ @versionNum ={{ this.requestedVersion }}
7
+ />
4
8
5
9
<div local-class =' crate-info' >
6
10
<div local-class =" docs" >
You can’t perform that action at this time.
0 commit comments