diff --git a/client/src/app/add-new-torrent/add-new-torrent.component.ts b/client/src/app/add-new-torrent/add-new-torrent.component.ts index 873c6af..235ad8b 100644 --- a/client/src/app/add-new-torrent/add-new-torrent.component.ts +++ b/client/src/app/add-new-torrent/add-new-torrent.component.ts @@ -1,12 +1,12 @@ import { Component, DestroyRef, OnInit, inject } from '@angular/core'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { Router } from '@angular/router'; -import { TorrentService } from 'src/app/torrent.service'; import { DownloadType, Torrent, TorrentFileAvailability } from '../models/torrent.model'; import { SettingsService } from '../settings.service'; import { ActivatedRoute } from '@angular/router'; import { FormsModule } from '@angular/forms'; import { NgClass } from '@angular/common'; +import { TorrentService } from '../torrent.service'; @Component({ selector: 'app-add-new-torrent', @@ -119,7 +119,8 @@ export class AddNewTorrentComponent implements OnInit { this.includeRegex = settings.find((m) => m.key === 'Gui:Default:IncludeRegex')?.value as string; this.excludeRegex = settings.find((m) => m.key === 'Gui:Default:ExcludeRegex')?.value as string; this.torrentRetryAttempts = settings.find((m) => m.key === 'Gui:Default:TorrentRetryAttempts')?.value as number; - this.downloadRetryAttempts = settings.find((m) => m.key === 'Gui:Default:DownloadRetryAttempts')?.value as number; + this.downloadRetryAttempts = settings.find((m) => m.key === 'Gui:Default:DownloadRetryAttempts') + ?.value as number; this.torrentDeleteOnError = settings.find((m) => m.key === 'Gui:Default:DeleteOnError')?.value as number; this.torrentLifetime = settings.find((m) => m.key === 'Gui:Default:TorrentLifetime')?.value as number; this.priority = settings.find((m) => m.key === 'Gui:Default:Priority')?.value as number; diff --git a/client/src/app/settings/settings.component.ts b/client/src/app/settings/settings.component.ts index 69bf78d..36de1a2 100644 --- a/client/src/app/settings/settings.component.ts +++ b/client/src/app/settings/settings.component.ts @@ -1,10 +1,10 @@ import { Component, OnInit, inject } from '@angular/core'; -import { SettingsService } from 'src/app/settings.service'; import { Setting } from '../models/setting.model'; import { NgClass, KeyValuePipe } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { Nl2BrPipe } from '../nl2br.pipe'; import { FileSizePipe } from '../filesize.pipe'; +import { SettingsService } from '../settings.service'; @Component({ selector: 'app-settings',