diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/src/app/shared/video/modals/video-download.component.html | 5 | ||||
-rw-r--r-- | client/src/app/shared/video/modals/video-download.component.ts | 5 |
2 files changed, 1 insertions, 9 deletions
diff --git a/client/src/app/shared/video/modals/video-download.component.html b/client/src/app/shared/video/modals/video-download.component.html index dd01c1388..935d01330 100644 --- a/client/src/app/shared/video/modals/video-download.component.html +++ b/client/src/app/shared/video/modals/video-download.component.html | |||
@@ -31,11 +31,6 @@ | |||
31 | <input type="radio" name="download" id="download-torrent" [(ngModel)]="downloadType" value="torrent"> | 31 | <input type="radio" name="download" id="download-torrent" [(ngModel)]="downloadType" value="torrent"> |
32 | <label i18n for="download-torrent">Torrent (.torrent file)</label> | 32 | <label i18n for="download-torrent">Torrent (.torrent file)</label> |
33 | </div> | 33 | </div> |
34 | |||
35 | <div class="peertube-radio-container"> | ||
36 | <input type="radio" name="download" id="download-magnet" [(ngModel)]="downloadType" value="magnet"> | ||
37 | <label i18n for="download-magnet">Torrent (magnet link)</label> | ||
38 | </div> | ||
39 | </div> | 34 | </div> |
40 | </div> | 35 | </div> |
41 | 36 | ||
diff --git a/client/src/app/shared/video/modals/video-download.component.ts b/client/src/app/shared/video/modals/video-download.component.ts index a07560f87..16f3621b4 100644 --- a/client/src/app/shared/video/modals/video-download.component.ts +++ b/client/src/app/shared/video/modals/video-download.component.ts | |||
@@ -12,7 +12,7 @@ import { Notifier } from '@app/core' | |||
12 | export class VideoDownloadComponent { | 12 | export class VideoDownloadComponent { |
13 | @ViewChild('modal') modal: ElementRef | 13 | @ViewChild('modal') modal: ElementRef |
14 | 14 | ||
15 | downloadType: 'direct' | 'torrent' | 'magnet' = 'torrent' | 15 | downloadType: 'direct' | 'torrent' = 'torrent' |
16 | resolutionId: number | string = -1 | 16 | resolutionId: number | string = -1 |
17 | 17 | ||
18 | video: VideoDetails | 18 | video: VideoDetails |
@@ -57,9 +57,6 @@ export class VideoDownloadComponent { | |||
57 | 57 | ||
58 | case 'torrent': | 58 | case 'torrent': |
59 | return file.torrentDownloadUrl | 59 | return file.torrentDownloadUrl |
60 | |||
61 | case 'magnet': | ||
62 | return file.magnetUri | ||
63 | } | 60 | } |
64 | } | 61 | } |
65 | 62 | ||