diff --git a/CulinaryCommandApp/Components/Layout/FeedbackButton.razor b/CulinaryCommandApp/Components/Layout/FeedbackButton.razor new file mode 100644 index 0000000..6bf0da1 --- /dev/null +++ b/CulinaryCommandApp/Components/Layout/FeedbackButton.razor @@ -0,0 +1,202 @@ +@using Amazon.Runtime.Internal.UserAgent +@using Microsoft.AspNetCore.Components +@using CulinaryCommand.Services.UserContextSpace +@using CulinaryCommand.Data.Entities +@inject IUserContextService UserCtx +@inject NavigationManager Nav +@inject IJSRuntime JSRuntime +@inject IFeedbackService FeedbackSvc + +
Loading feedback...
+ } + else if (!Filtered.Any()) + { +No feedback matches your filters.
+ } + else + { +| Time | +Type | +Role | +User | +Page | +Message | +Screenshot | ++ |
|---|---|---|---|---|---|---|---|
| @f.SubmittedAt.ToLocalTime().ToString("MM/dd/yy HH:mm") | +@GetTypeEmoji(f.FeedbackType) @f.FeedbackType | +@f.UserRole | +@f.UserEmail | +@TrimPage(f.Page) | +@f.Message | +
+ @if (!string.IsNullOrEmpty(f.ScreenshotBase64))
+ {
+ |
+ + + | +