* Added the default streaming country to the user importer

pull/3970/head
tidusjar 4 years ago
parent 0936354df5
commit 93997116be

@ -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…
Cancel
Save