diff --git a/src/Ombi/ClientApp/src/app/usermanagement/usermanagement-user.component.html b/src/Ombi/ClientApp/src/app/usermanagement/usermanagement-user.component.html
index 67152f7d9..fa79862fc 100644
--- a/src/Ombi/ClientApp/src/app/usermanagement/usermanagement-user.component.html
+++ b/src/Ombi/ClientApp/src/app/usermanagement/usermanagement-user.component.html
@@ -50,7 +50,7 @@
Movie Request Limit Type
-
+
{{RequestLimitType[value]}}
@@ -65,7 +65,7 @@
Episode Request Limit Type
-
+
{{RequestLimitType[value]}}
@@ -80,7 +80,7 @@
Music Request Limit Type
-
+
{{RequestLimitType[value]}}
diff --git a/src/Ombi/ClientApp/src/app/usermanagement/usermanagement.component.html b/src/Ombi/ClientApp/src/app/usermanagement/usermanagement.component.html
index 02a790145..f79188ae9 100644
--- a/src/Ombi/ClientApp/src/app/usermanagement/usermanagement.component.html
+++ b/src/Ombi/ClientApp/src/app/usermanagement/usermanagement.component.html
@@ -118,7 +118,7 @@
-
+
-
+
+
Movie Request Limit
-
+
+
+ Movie Request Limit Type
+
+
+ {{RequestLimitType[value]}}
+
+
+
+
+
Episode Request Limit
+
+
+ Episode Request Limit Type
+
+
+ {{RequestLimitType[value]}}
+
+
+
+
+
+
Music Request Limit
+
+
+ Music Request Limit Type
+
+
+ {{RequestLimitType[value]}}
+
+
+
+
@@ -152,7 +185,7 @@
-
+
diff --git a/src/Ombi/ClientApp/src/app/usermanagement/usermanagement.component.scss b/src/Ombi/ClientApp/src/app/usermanagement/usermanagement.component.scss
index df34508cf..1d5d51f69 100644
--- a/src/Ombi/ClientApp/src/app/usermanagement/usermanagement.component.scss
+++ b/src/Ombi/ClientApp/src/app/usermanagement/usermanagement.component.scss
@@ -87,4 +87,8 @@
table {
width: 100%;
+}
+
+::ng-deep .p-sidebar {
+ background: $background-dark !important;
}
\ No newline at end of file
diff --git a/src/Ombi/ClientApp/src/app/usermanagement/usermanagement.component.ts b/src/Ombi/ClientApp/src/app/usermanagement/usermanagement.component.ts
index 2bd2b3d89..81cc08485 100644
--- a/src/Ombi/ClientApp/src/app/usermanagement/usermanagement.component.ts
+++ b/src/Ombi/ClientApp/src/app/usermanagement/usermanagement.component.ts
@@ -1,5 +1,5 @@
import { AfterViewInit, Component, OnInit, ViewChild } from "@angular/core";
-import { ICheckbox, ICustomizationSettings, IEmailNotificationSettings, IUser } from "../interfaces";
+import { ICheckbox, ICustomizationSettings, IEmailNotificationSettings, IUser, RequestLimitType } from "../interfaces";
import { IdentityService, NotificationService, SettingsService } from "../services";
import { CustomizationFacade } from "../state/customization";
@@ -32,6 +32,12 @@ export class UserManagementComponent implements OnInit {
public plexEnabled: boolean;
public countries: string[];
+ public requestLimitTypes: RequestLimitType[] = [RequestLimitType.Day, RequestLimitType.Week, RequestLimitType.Month];
+ public RequestLimitType = RequestLimitType;
+
+ public musicRequestLimitType: RequestLimitType;
+ public episodeRequestLimitType: RequestLimitType;
+ public movieRequestLimitType: RequestLimitType;
constructor(private identityService: IdentityService,
private settingsService: SettingsService,
@@ -95,6 +101,15 @@ export class UserManagementComponent implements OnInit {
if (this.bulkStreaming) {
x.streamingCountry = this.bulkStreaming;
}
+ if (this.musicRequestLimitType) {
+ x.musicRequestLimitType = this.musicRequestLimitType;
+ }
+ if (this.episodeRequestLimitType) {
+ x.episodeRequestLimitType = this.episodeRequestLimitType;
+ }
+ if (this.movieRequestLimitType) {
+ x.movieRequestLimitType = this.movieRequestLimitType;
+ }
this.identityService.updateUser(x).subscribe(y => {
if (!y.successful) {
this.notificationService.error(`Could not update user ${x.userName}. Reason ${y.errors[0]}`);
@@ -108,6 +123,9 @@ export class UserManagementComponent implements OnInit {
this.bulkEpisodeLimit = undefined;
this.bulkMusicLimit = undefined;
this.bulkStreaming = undefined;
+ this.movieRequestLimitType = undefined;
+ this.episodeRequestLimitType = undefined;
+ this.musicRequestLimitType = undefined;
}
public isAllSelected() {