Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sonarr): 🐛 Sonarr V4 should work now (#4810)
* fix(sonarr): 🐛 Sonarr V4 should work now Auto detect the sonarr version and adjust the UI depending on V3 or V4 (Lang profiles) * fix: Fixed the load error
- Loading branch information
Showing
16 changed files
with
219 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export * from './sonarr.state'; | ||
export * from './sonarr.actions'; | ||
export * from './sonarr.facade'; | ||
export * from './sonarr.selectors'; |
12 changes: 12 additions & 0 deletions
12
src/Ombi/ClientApp/src/app/state/sonarr/sonarr-initializer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { APP_INITIALIZER } from "@angular/core"; | ||
import { Observable } from "rxjs"; | ||
import { SonarrFacade } from "./sonarr.facade"; | ||
|
||
export const SONARR_INITIALIZER = { | ||
provide: APP_INITIALIZER, | ||
useFactory: (sonarrFacade: SonarrFacade) => (): Observable<unknown> => { | ||
return sonarrFacade.load(); | ||
}, | ||
multi: true, | ||
deps: [SonarrFacade], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { ISonarrSettings } from "../../interfaces"; | ||
|
||
export class LoadSettings { | ||
public static readonly type = '[Sonarr] LoadSettings'; | ||
} | ||
|
||
export class UpdateSettings { | ||
public static readonly type = '[Sonarr] UpdateSettings'; | ||
constructor(public settings: ISonarrSettings) { } | ||
} |
Oops, something went wrong.