diff --git a/Moonlight/Shared/Components/TicketPopup/TicketPopupView.razor b/Moonlight/Shared/Components/TicketPopup/TicketPopupView.razor index 56dc9d9..4875d6a 100644 --- a/Moonlight/Shared/Components/TicketPopup/TicketPopupView.razor +++ b/Moonlight/Shared/Components/TicketPopup/TicketPopupView.razor @@ -66,22 +66,34 @@
@code { - [CascadingParameter] - public TicketPopupMain TicketPopupMain { get; set; } + [CascadingParameter] public TicketPopupMain TicketPopupMain { get; set; } private bool HasStarted = false; - + private ChatFileSelect FileSelect; private string MessageContent = ""; @@ -89,11 +101,11 @@ { await lazyLoader.SetText("Starting chat client"); - // Initialize chat service and start it + // Initialize chat service and start it TicketService.Chat.OnUpdate = OnUpdate; await TicketService.Chat.Start(TicketPopupMain.CurrentTicket); - // Let the ui know that we are ready + // Let the ui know that we are ready HasStarted = true; await InvokeAsync(StateHasChanged); } @@ -119,7 +131,7 @@ string.IsNullOrEmpty(MessageContent) ? $"Upload of {FileSelect.SelectedFile.Name}" : MessageContent, FileSelect.SelectedFile.OpenReadStream(1024 * 1024 * 5), FileSelect.SelectedFile.Name - ); + ); await FileSelect.RemoveSelection(); }