File tree 4 files changed +0
-30
lines changed
4 files changed +0
-30
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import PromiseProxyMixin from '@ember/object/promise-proxy-mixin';
3
3
import ArrayProxy from '@ember/array/proxy' ;
4
4
import { computed } from '@ember/object' ;
5
5
import { later } from '@ember/runloop' ;
6
- import $ from 'jquery' ;
7
6
import moment from 'moment' ;
8
7
9
8
const NUM_VERSIONS = 5 ;
@@ -163,16 +162,6 @@ export default Controller.extend({
163
162
this . toggleClipboardProps ( false ) ;
164
163
} ,
165
164
166
- download ( version ) {
167
- this . set ( 'isDownloading' , true ) ;
168
-
169
- version . getDownloadUrl ( ) . then ( url => {
170
- this . incrementProperty ( 'crate.downloads' ) ;
171
- this . incrementProperty ( 'currentVersion.downloads' ) ;
172
- $ ( '#download-frame' ) . attr ( 'src' , url ) ;
173
- } ) . finally ( ( ) => this . set ( 'isDownloading' , false ) ) ;
174
- } ,
175
-
176
165
toggleFollow ( ) {
177
166
this . set ( 'fetchingFollowing' , true ) ;
178
167
Original file line number Diff line number Diff line change @@ -20,8 +20,4 @@ export default DS.Model.extend({
20
20
crateName : computed ( 'crate' , function ( ) {
21
21
return this . belongsTo ( 'crate' ) . id ( ) ;
22
22
} ) ,
23
-
24
- getDownloadUrl ( ) {
25
- return this . store . adapterFor ( 'version' ) . getDownloadUrl ( this . get ( 'dl_path' ) ) ;
26
- } ,
27
23
} ) ;
Original file line number Diff line number Diff line change 22
22
{{ /if }}
23
23
</button >
24
24
{{ /if }}
25
- {{!--
26
- <a class='yellow-button' download
27
- {{action 'download' currentVersion}}
28
- href='{{currentVersion.dl_path}}'>
29
- <img class="button-download" src="/assets/button-download.png"/>
30
- Download
31
- </a>
32
- --}}
33
25
</div >
34
26
</div >
35
27
You can’t perform that action at this time.
0 commit comments