mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
* Added streaming country into the user bulk edit
This commit is contained in:
parent
93997116be
commit
9e2f08e38f
2 changed files with 15 additions and 5 deletions
|
@ -125,17 +125,15 @@
|
|||
|
||||
|
||||
<p-sidebar [(visible)]="showBulkEdit" position="right" [modal]="false">
|
||||
<h3>Bulk Edit</h3>
|
||||
<hr/>
|
||||
<div>
|
||||
<div *ngFor="let c of availableClaims">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<mat-slide-toggle id="create{{c.value}}" [(ngModel)]="c.enabled" [attr.name]="'create' + c.value">
|
||||
{{c.value | humanize}}</mat-slide-toggle>
|
||||
<small>{{c.value | humanize}}</small></mat-slide-toggle>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<mat-form-field appearance="outline" class="full">
|
||||
|
@ -150,6 +148,14 @@
|
|||
<mat-label>Music Request Limit</mat-label>
|
||||
<input matInput id="musicRequestLimit" name="musicRequestLimit" [(ngModel)]="bulkMusicLimit">
|
||||
</mat-form-field>
|
||||
<mat-form-field appearance="outline" class="full">
|
||||
<mat-label [translate]="'UserPreferences.StreamingCountry'"></mat-label>
|
||||
<mat-select [(value)]="bulkStreaming">
|
||||
<mat-option *ngFor="let value of countries" [value]="value">
|
||||
{{value}}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
|
||||
<button type="button" mat-raised-button (click)="bulkUpdate()">Update Users</button>
|
||||
|
|
|
@ -27,8 +27,11 @@ export class UserManagementComponent implements OnInit {
|
|||
public bulkMovieLimit?: number;
|
||||
public bulkEpisodeLimit?: number;
|
||||
public bulkMusicLimit?: number;
|
||||
public bulkStreaming?: string;
|
||||
public plexEnabled: boolean;
|
||||
|
||||
public countries: string[];
|
||||
|
||||
constructor(private identityService: IdentityService,
|
||||
private settingsService: SettingsService,
|
||||
private notificationService: NotificationService,
|
||||
|
@ -38,6 +41,7 @@ export class UserManagementComponent implements OnInit {
|
|||
|
||||
|
||||
public async ngOnInit() {
|
||||
this.identityService.getSupportedStreamingCountries().subscribe(x => this.countries = x);
|
||||
this.users = await this.identityService.getUsers().toPromise();
|
||||
this.dataSource = new MatTableDataSource(this.users);
|
||||
this.dataSource.sort = this.sort;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue