mirror of
https://github.com/Shchoholiev/shopping-assistant-web-client.git
synced 2025-04-03 16:19:48 +00:00
changed SearchService
This commit is contained in:
parent
bfb63ecffd
commit
4b37648a78
@ -40,7 +40,7 @@ public partial class Chat : ComponentBase
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
try{
|
||||
var input = _searchServise.firstMassage;
|
||||
var input = _searchServise.FirstMessage;
|
||||
|
||||
if (input!=null){
|
||||
|
||||
@ -65,7 +65,7 @@ public partial class Chat : ComponentBase
|
||||
};
|
||||
|
||||
var response = await _apiClient.QueryAsync(request);
|
||||
_searchServise.SetFirstMassage(null);
|
||||
_searchServise.SetFirstMessage(null);
|
||||
isLoading = false;
|
||||
await UpdateSideMenu(wishlistId);
|
||||
StateHasChanged();
|
||||
|
@ -62,7 +62,7 @@ namespace ShoppingAssistantWebClient.Web.Pages
|
||||
string wishlistId = chatId;
|
||||
|
||||
|
||||
_searchServise.SetFirstMassage(inputValue);
|
||||
_searchServise.SetFirstMessage(inputValue);
|
||||
await UpdateSideMenu(wishlistId);
|
||||
|
||||
var url = $"/chat/{chatId}";
|
||||
|
@ -11,7 +11,7 @@ public class SearchService
|
||||
Products = products;
|
||||
}
|
||||
|
||||
public void SetFirstMassage(string message) {
|
||||
public void SetFirstMessage(string message) {
|
||||
FirstMessage = message;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user