From 018cd7a0727fa5ede5328cc2ed6a0047ca7dc809 Mon Sep 17 00:00:00 2001 From: "Jamie.Rees" Date: Mon, 7 Aug 2017 14:22:23 +0100 Subject: [PATCH] Added a checkbox to the usermanagement screen.. Does nothing yet #865 #1456 --- src/Ombi/ClientApp/app/interfaces/IUser.ts | 4 + .../usermanagement-add.component.ts | 3 +- .../usermanagement.component.html | 118 ++++++++++-------- .../usermanagement.component.ts | 12 +- .../usermanagement/usermanagement.module.ts | 4 +- 5 files changed, 82 insertions(+), 59 deletions(-) diff --git a/src/Ombi/ClientApp/app/interfaces/IUser.ts b/src/Ombi/ClientApp/app/interfaces/IUser.ts index 49bac3cc0..b2f318600 100644 --- a/src/Ombi/ClientApp/app/interfaces/IUser.ts +++ b/src/Ombi/ClientApp/app/interfaces/IUser.ts @@ -6,6 +6,10 @@ emailAddress: string, password: string, userType: UserType, + + + // FOR UI + checked: boolean, } export enum UserType { diff --git a/src/Ombi/ClientApp/app/usermanagement/usermanagement-add.component.ts b/src/Ombi/ClientApp/app/usermanagement/usermanagement-add.component.ts index 18a60ac54..37d1bef0e 100644 --- a/src/Ombi/ClientApp/app/usermanagement/usermanagement-add.component.ts +++ b/src/Ombi/ClientApp/app/usermanagement/usermanagement-add.component.ts @@ -27,7 +27,8 @@ export class UserManagementAddComponent implements OnInit { id: "", password: "", username: "", - userType: UserType.LocalUser + userType: UserType.LocalUser, + checked:false } } diff --git a/src/Ombi/ClientApp/app/usermanagement/usermanagement.component.html b/src/Ombi/ClientApp/app/usermanagement/usermanagement.component.html index abeba46aa..010ccb7b5 100644 --- a/src/Ombi/ClientApp/app/usermanagement/usermanagement.component.html +++ b/src/Ombi/ClientApp/app/usermanagement/usermanagement.component.html @@ -21,58 +21,68 @@ - - - - - - - + + + + + + + + - - - - - - - - + + + + + + + + +
- - Username - - - - - Alias - - - - Email - - - Roles - - - User Type - -
+ + + + + + Username + + + + + Alias + + + + Email + + + Roles + + + User Type + +
- {{u.username}} - - {{u.alias}} - - {{u.emailAddress}} - -
{{claim.value}}
- -
- Local User - Plex User - Emby User - - Details/Edit -
+ + + {{u.username}} + + {{u.alias}} + + {{u.emailAddress}} + +
+ {{claim.value}} +
+ +
+ Local User + Plex User + Emby User + + Details/Edit +
@@ -98,14 +108,14 @@ - +
- +
@@ -115,8 +125,8 @@
- - + +