mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
parent
6e32bd33f5
commit
900ec20e42
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
import { AfterViewInit, Component, OnInit, ViewChild } from "@angular/core";
|
||||
|
||||
import { ICheckbox, ICustomizationSettings, IEmailNotificationSettings, IUser } from "../interfaces";
|
||||
import { IdentityService, NotificationService, SettingsService } from "../services";
|
||||
|
||||
import { MatSort } from "@angular/material/sort";
|
||||
import { MatTableDataSource } from "@angular/material/table";
|
||||
import { SelectionModel } from "@angular/cdk/collections";
|
||||
|
@ -90,6 +90,9 @@ export class UserManagementComponent implements OnInit {
|
|||
if (this.bulkMusicLimit) {
|
||||
x.musicRequestLimit = this.bulkMusicLimit;
|
||||
}
|
||||
if (this.bulkStreaming) {
|
||||
x.streamingCountry = this.bulkStreaming;
|
||||
}
|
||||
this.identityService.updateUser(x).subscribe(y => {
|
||||
if (!y.successful) {
|
||||
this.notificationService.error(`Could not update user ${x.userName}. Reason ${y.errors[0]}`);
|
||||
|
@ -102,6 +105,7 @@ export class UserManagementComponent implements OnInit {
|
|||
this.bulkMovieLimit = undefined;
|
||||
this.bulkEpisodeLimit = undefined;
|
||||
this.bulkMusicLimit = undefined;
|
||||
this.bulkStreaming = undefined;
|
||||
}
|
||||
|
||||
public isAllSelected() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue