diff options
author | Alex <alexta69@gmail.com> | 2022-01-05 20:59:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 20:59:45 +0200 |
commit | 62570a0a407eda256adb4afcce44df096a21abc1 (patch) | |
tree | 2c807701435f2140ee52f3627bfd8da369c5f87c /ui/src/app/app.component.ts | |
parent | upgraded yt-dlp (diff) | |
parent | Updated layout for new Button (diff) | |
download | metube-62570a0a407eda256adb4afcce44df096a21abc1.tar.gz metube-62570a0a407eda256adb4afcce44df096a21abc1.tar.bz2 metube-62570a0a407eda256adb4afcce44df096a21abc1.zip |
Merge pull request #99 from Erazor2/RealRetry
Fixed Retry Button
Diffstat (limited to 'ui/src/app/app.component.ts')
-rw-r--r-- | ui/src/app/app.component.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ui/src/app/app.component.ts b/ui/src/app/app.component.ts index 8f7d965..a9b46a3 100644 --- a/ui/src/app/app.component.ts +++ b/ui/src/app/app.component.ts @@ -1,6 +1,6 @@ import { Component, ViewChild, ElementRef, AfterViewInit } from '@angular/core'; import { faTrashAlt, faCheckCircle, faTimesCircle } from '@fortawesome/free-regular-svg-icons'; -import { faRedoAlt, faSun, faMoon } from '@fortawesome/free-solid-svg-icons'; +import { faRedoAlt, faSun, faMoon, faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons'; import { CookieService } from 'ngx-cookie-service'; import { DownloadsService, Status } from './downloads.service'; @@ -33,7 +33,8 @@ export class AppComponent implements AfterViewInit { faTimesCircle = faTimesCircle; faRedoAlt = faRedoAlt; faSun = faSun; - faMoon = faMoon; + faMoon = faMoon; + faExternalLinkAlt = faExternalLinkAlt; constructor(public downloads: DownloadsService, private cookieService: CookieService) { this.format = cookieService.get('metube_format') || 'any'; @@ -129,8 +130,8 @@ export class AppComponent implements AfterViewInit { }); } - retryDownload(key: string, quality: string, format: string) { - this.addDownload(key, quality, format); + retryDownload(key: string, url: string, quality: string, format: string) { + this.addDownload(url, quality, format); this.downloads.delById('done', [key]).subscribe(); } |