mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
* Added the default streaming country to the user importer
This commit is contained in:
parent
0936354df5
commit
93997116be
3 changed files with 16 additions and 4 deletions
|
@ -212,6 +212,7 @@ export interface IUserManagementSettings extends ISettings {
|
|||
bannedPlexUserIds: string[];
|
||||
bannedEmbyUserIds: string[];
|
||||
bannedJellyfinUserIds: string[];
|
||||
defaultStreamingCountry: string;
|
||||
}
|
||||
|
||||
export interface IAbout {
|
||||
|
|
|
@ -75,6 +75,15 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<mat-form-field>
|
||||
<mat-label [translate]="'UserPreferences.StreamingCountry'"></mat-label>
|
||||
<mat-select [(value)]="settings.defaultStreamingCountry">
|
||||
<mat-option *ngFor="let value of countries" [value]="value">
|
||||
{{value}}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button (click)="submit()" mat-raised-button type="submit" id="save" class="mat-focus-indicator mat-stroked-button accent mat-accent mat-raised-button mat-button-base" ng-reflect-disabled="false">
|
||||
|
|
|
@ -29,6 +29,7 @@ export class UserManagementComponent implements OnInit {
|
|||
public bannedJellyfinUsers: IUsersModel[] = [];
|
||||
|
||||
public enableImportButton = false;
|
||||
public countries: string[];
|
||||
|
||||
constructor(private readonly settingsService: SettingsService,
|
||||
private readonly notificationService: NotificationService,
|
||||
|
@ -40,6 +41,7 @@ export class UserManagementComponent implements OnInit {
|
|||
}
|
||||
|
||||
public ngOnInit(): void {
|
||||
this.identityService.getSupportedStreamingCountries().subscribe(x => this.countries = x);
|
||||
this.settingsService.getUserManagementSettings().subscribe(x => {
|
||||
this.settings = x;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue