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