load searches only for clicked profile, acutally filter profiles by search results
This commit is contained in:
@@ -82,12 +82,12 @@ Public Class frmMatch
|
||||
Dim oProfileSearch As New ProfileSearches(_LogConfig, _Environment, _Params)
|
||||
|
||||
If oProfile.CountData > 0 Then
|
||||
Dim oSearches = Await oProfileSearch.LoadDataSearchesAsync()
|
||||
Dim oSearches = Await oProfileSearch.LoadDataSearchesAsync(oProfile.Guid)
|
||||
OpenDataResults(oProfile, oSearches)
|
||||
Hide()
|
||||
|
||||
ElseIf oProfile.CountDocs > 0 Then
|
||||
Dim oSearches = Await oProfileSearch.LoadDocumentSearchesAsync()
|
||||
Dim oSearches = Await oProfileSearch.LoadDocumentSearchesAsync(oProfile.Guid)
|
||||
OpenDocumentResults(oProfile, oSearches)
|
||||
Hide()
|
||||
|
||||
@@ -207,11 +207,11 @@ Public Class frmMatch
|
||||
|
||||
Select Case oItem.Group.Name
|
||||
Case TileGroupData.Name
|
||||
Dim oSearches = Await oProfileSearch.LoadDataSearchesAsync()
|
||||
Dim oSearches = Await oProfileSearch.LoadDataSearchesAsync(oProfileId)
|
||||
OpenDataResults(oProfile, oSearches)
|
||||
|
||||
Case TileGroupDocuments.Name
|
||||
Dim oSearches = Await oProfileSearch.LoadDocumentSearchesAsync()
|
||||
Dim oSearches = Await oProfileSearch.LoadDocumentSearchesAsync(oProfileId)
|
||||
OpenDocumentResults(oProfile, oSearches)
|
||||
|
||||
Case Else
|
||||
|
||||
Reference in New Issue
Block a user