From 6f6f2b77d7151bebe5355d1e3574dee6109e9a7d Mon Sep 17 00:00:00 2001 From: Cody Date: Thu, 4 Jun 2020 21:11:24 -0700 Subject: [PATCH 1/9] '...' added, Reply Removed --- .../Modules/Admin/UserProfile/Index.razor | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/Oqtane.Client/Modules/Admin/UserProfile/Index.razor b/Oqtane.Client/Modules/Admin/UserProfile/Index.razor index b47eb3fe..4579d138 100644 --- a/Oqtane.Client/Modules/Admin/UserProfile/Index.razor +++ b/Oqtane.Client/Modules/Admin/UserProfile/Index.razor @@ -126,7 +126,14 @@ else - @(context.Body.Length > 100 ? context.Body.Substring(0, 100) : context.Body) + + @{ + string input = "---"; + if (context.Body.Contains(input)){ + context.Body = context.Body.Split(input)[0]; + } } + @(context.Body.Length > 100 ? (context.Body.Substring(0, 97) + "...") : context.Body) + } @@ -149,7 +156,14 @@ else - @(context.Body.Length > 100 ? context.Body.Substring(0, 100) : context.Body) + + @{ + string input = "---"; + if (context.Body.Contains(input)){ + context.Body = context.Body.Split(input)[0]; + } } + @(context.Body.Length > 100 ? (context.Body.Substring(0, 97) + "...") : context.Body) + } From 7b9cd39cb7163a530b5c8d7a6938bbb26d58bc3c Mon Sep 17 00:00:00 2001 From: Cody Date: Thu, 4 Jun 2020 21:20:48 -0700 Subject: [PATCH 2/9] To/From Fields enabled/disabled, reply message fix --- .../Modules/Admin/UserProfile/View.razor | 86 +++++++++++++------ 1 file changed, 61 insertions(+), 25 deletions(-) diff --git a/Oqtane.Client/Modules/Admin/UserProfile/View.razor b/Oqtane.Client/Modules/Admin/UserProfile/View.razor index 5d5a43f5..39fb13d3 100644 --- a/Oqtane.Client/Modules/Admin/UserProfile/View.razor +++ b/Oqtane.Client/Modules/Admin/UserProfile/View.razor @@ -1,15 +1,9 @@ -@namespace Oqtane.Modules.Admin.UserProfile -@inherits ModuleBase -@inject NavigationManager NavigationManager -@inject IUserService UserService -@inject INotificationService NotificationService - -@if (PageState.User != null) +@if (PageState.User != null) { + @if (title == "From") + { + + } + @if (title == "To") + { + + } + @if (title == "From") { + + } + @if (title == "From") + { + + +
- + @@ -17,47 +11,85 @@
- +
+ + + +
- + - + +
+ + +