diff --git a/src/Ombi/ClientApp/src/app/interfaces/IUser.ts b/src/Ombi/ClientApp/src/app/interfaces/IUser.ts index f3a07145b..4235d55cf 100644 --- a/src/Ombi/ClientApp/src/app/interfaces/IUser.ts +++ b/src/Ombi/ClientApp/src/app/interfaces/IUser.ts @@ -114,5 +114,6 @@ export enum INotificationAgent { Mattermost = 6, Mobile = 7, Gotify = 8, - WhatsApp = 9 + Webhook = 9, + WhatsApp = 10 } 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 8bc212c43..d03bb9d2e 100644 --- a/src/Ombi/ClientApp/src/app/usermanagement/usermanagement-user.component.html +++ b/src/Ombi/ClientApp/src/app/usermanagement/usermanagement-user.component.html @@ -1,175 +1,160 @@ - -
- - - - User Details -
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- - - -
-
- -
-
- - +
+
+
+ +
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
+
+ + + +
- - Choose the Roles -
-
- {{c.value | humanize}} -
-
+
-
-
- {{c.value | humanize}} -
-
-
- - -
- - - Set Request Limits - -
- - - -
-
- - - -
+
+ +
+ + + +
+
+ + + +
+
+ + + +
+ + + Sonarr Quality Profile + + + {{folder.name}} + + + + + + Sonarr Quality Profile (Anime) + + + {{folder.name}} + + + + + + Sonarr Root Folder + + + {{folder.path}} + + + + + + Sonarr Root Folder (Anime) + + + {{folder.path}} + + + + + + Radarr Quality Profiles + + + {{folder.name}} + + + + + + Radarr Root Folder + + + {{folder.path}} + + + +
+ +
+ +
+
+ {{c.value | humanize}} +
+
+ +
+
+ {{c.value | humanize}} +
+
+
+ + +
+ +
- +
+
+
-
- - -
-
- - Notification Preferences -
-
- - - -
-
-
- - -
-
+
- - Quality & Root Path Preferences +
- - Sonarr Quality Profile - - - {{folder.name}} - - - - - - Sonarr Quality Profile (Anime) - - - {{folder.name}} - - - - - - Sonarr Root Folder - - - {{folder.path}} - - - - - - Sonarr Root Folder (Anime) - - - {{folder.path}} - - - +
+ +
+ + + - - Radarr Quality Profiles - - - {{folder.name}} - - - +
- - Radarr Root Folder - - - {{folder.path}} - - - +
+
+ +
+
-
- - -
-
- - Actions - -
- - - -
-
- -
+
\ No newline at end of file diff --git a/src/Ombi/ClientApp/src/app/usermanagement/usermanagement-user.component.ts b/src/Ombi/ClientApp/src/app/usermanagement/usermanagement-user.component.ts index e9ee08e4f..db0403a01 100644 --- a/src/Ombi/ClientApp/src/app/usermanagement/usermanagement-user.component.ts +++ b/src/Ombi/ClientApp/src/app/usermanagement/usermanagement-user.component.ts @@ -1,8 +1,9 @@ -import { Component, OnInit } from "@angular/core"; +import { Location } from "@angular/common"; +import { Component, OnInit } from "@angular/core"; import { ActivatedRoute, Router } from "@angular/router"; import { ICheckbox, INotificationAgent, INotificationPreferences, IRadarrProfile, IRadarrRootFolder, ISonarrProfile, ISonarrRootFolder, IUser, UserType } from "../interfaces"; -import { IdentityService, NotificationService, RadarrService, SonarrService, MessageService } from "../services"; +import { IdentityService, RadarrService, SonarrService, MessageService } from "../services"; @Component({ templateUrl: "./usermanagement-user.component.html", @@ -15,7 +16,7 @@ export class UserManagementUserComponent implements OnInit { public availableClaims: ICheckbox[]; public confirmPass: ""; public notificationPreferences: INotificationPreferences[]; - + public sonarrQualities: ISonarrProfile[]; public sonarrRootFolders: ISonarrRootFolder[]; public radarrQualities: IRadarrProfile[]; @@ -29,7 +30,8 @@ export class UserManagementUserComponent implements OnInit { private router: Router, private route: ActivatedRoute, private sonarrService: SonarrService, - private radarrService: RadarrService) { + private radarrService: RadarrService, + private location: Location) { this.route.params.subscribe((params: any) => { if(params.id) { @@ -38,7 +40,7 @@ export class UserManagementUserComponent implements OnInit { this.identityService.getUserById(this.userId).subscribe(x => { this.user = x; }); - } + } }); } @@ -171,4 +173,8 @@ export class UserManagementUserComponent implements OnInit { }); } + public back() { + this.location.back(); + } + } diff --git a/src/Ombi/Controllers/V1/IdentityController.cs b/src/Ombi/Controllers/V1/IdentityController.cs index 6afd7d70e..fa6e98d3a 100644 --- a/src/Ombi/Controllers/V1/IdentityController.cs +++ b/src/Ombi/Controllers/V1/IdentityController.cs @@ -933,7 +933,8 @@ namespace Ombi.Controllers.V1 private readonly List _excludedAgents = new List { NotificationAgent.Email, - NotificationAgent.Mobile + NotificationAgent.Mobile, + NotificationAgent.Webhook }; private async Task> GetPreferences(OmbiUser user) {