run prettier
This commit is contained in:
parent
1be3e98ad7
commit
30b9b9a4ad
1 changed files with 3 additions and 3 deletions
|
|
@ -50,11 +50,11 @@ export class AddNewTorrentComponent implements OnInit {
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private torrentService: TorrentService,
|
private torrentService: TorrentService,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private activatedRoute: ActivatedRoute
|
private activatedRoute: ActivatedRoute,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.activatedRoute.queryParams.subscribe(params => {
|
this.activatedRoute.queryParams.subscribe((params) => {
|
||||||
if (params['magnet']) {
|
if (params['magnet']) {
|
||||||
this.magnetLink = decodeURIComponent(params['magnet']);
|
this.magnetLink = decodeURIComponent(params['magnet']);
|
||||||
}
|
}
|
||||||
|
|
@ -70,7 +70,7 @@ export class AddNewTorrentComponent implements OnInit {
|
||||||
this.downloadAction =
|
this.downloadAction =
|
||||||
settings.first((m) => m.key === 'Gui:Default:OnlyDownloadAvailableFiles')?.value === true ? 1 : 0;
|
settings.first((m) => m.key === 'Gui:Default:OnlyDownloadAvailableFiles')?.value === true ? 1 : 0;
|
||||||
this.finishedAction = settings.first((m) => m.key === 'Gui:Default:FinishedAction')?.value as number;
|
this.finishedAction = settings.first((m) => m.key === 'Gui:Default:FinishedAction')?.value as number;
|
||||||
this.finishedActionDelay = settings.first(m => m.key =="Gui:Default:FinishedActionDelay")?.value as number;
|
this.finishedActionDelay = settings.first((m) => m.key == 'Gui:Default:FinishedActionDelay')?.value as number;
|
||||||
this.downloadMinSize = settings.first((m) => m.key === 'Gui:Default:MinFileSize')?.value as number;
|
this.downloadMinSize = settings.first((m) => m.key === 'Gui:Default:MinFileSize')?.value as number;
|
||||||
this.includeRegex = settings.first((m) => m.key === 'Gui:Default:IncludeRegex')?.value as string;
|
this.includeRegex = settings.first((m) => m.key === 'Gui:Default:IncludeRegex')?.value as string;
|
||||||
this.excludeRegex = settings.first((m) => m.key === 'Gui:Default:ExcludeRegex')?.value as string;
|
this.excludeRegex = settings.first((m) => m.key === 'Gui:Default:ExcludeRegex')?.value as string;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue