File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,7 @@ export default Controller.extend({
26
26
crate : alias ( 'model.crate' ) ,
27
27
requestedVersion : alias ( 'model.requestedVersion' ) ,
28
28
currentVersion : alias ( 'model.version' ) ,
29
- crateTomlText : computed ( 'crate.name' , 'currentVersion.num' , function ( ) {
30
- return `${ this . get ( 'crate.name' ) } = "${ this . get ( 'currentVersion.num' ) } "` ;
31
- } ) ,
29
+
32
30
keywords : alias ( 'crate.keywords' ) ,
33
31
categories : alias ( 'crate.categories' ) ,
34
32
badges : alias ( 'crate.badges' ) ,
Original file line number Diff line number Diff line change 51
51
{{ else }}
52
52
<div local-class =' install' >
53
53
<div local-class =' install-action' >Cargo.toml</div >
54
- <code >{{ this.crateTomlText }} </code >
54
+ <code >{{ this.crate.name }} = " {{ this.currentVersion.num }} " </code >
55
55
{{ #if (is-clipboard-supported )}}
56
- <CrateTomlCopy @copyText ={{ this.crateTomlText }} />
56
+ <CrateTomlCopy @copyText =' {{ this.crate.name }} = " {{ this.currentVersion.num }} " ' />
57
57
{{ /if }}
58
58
</div >
59
59
{{ #if this.readme }}
You can’t perform that action at this time.
0 commit comments