mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:46:30 +00:00
add MediaHash. Step1
This commit is contained in:
@@ -258,12 +258,13 @@ public partial class DatasetExplorer
|
||||
private async Task ReloadThumbnails()
|
||||
{
|
||||
var withDetectionsOnly = ShowWithObjectsOnlyChBox.IsChecked;
|
||||
var currentUser = await _azaionApi.GetCurrentUserAsync();
|
||||
SelectedAnnotations.Clear();
|
||||
SelectedAnnotationDict.Clear();
|
||||
var annThumbnails = _annotationsDict[ExplorerEditor.CurrentAnnClass.YoloId]
|
||||
var annThumbnails = _annotationsDict[ExplorerEditor.CurrentAnnClass!.YoloId]
|
||||
.WhereIf(withDetectionsOnly, x => x.Value.Detections.Any())
|
||||
.WhereIf(!string.IsNullOrEmpty(CurrentFilter), x => x.Key.Contains(CurrentFilter, StringComparison.CurrentCultureIgnoreCase))
|
||||
.Select(x => new AnnotationThumbnail(x.Value, _azaionApi.CurrentUser.Role.IsValidator()))
|
||||
.Select(x => new AnnotationThumbnail(x.Value, currentUser.Role.IsValidator()))
|
||||
.OrderBy(x => !x.IsSeed)
|
||||
.ThenByDescending(x =>x.Annotation.CreatedDate);
|
||||
|
||||
@@ -272,7 +273,6 @@ public partial class DatasetExplorer
|
||||
SelectedAnnotations.Add(thumb);
|
||||
SelectedAnnotationDict.Add(thumb.Annotation.Name, thumb);
|
||||
}
|
||||
await Task.CompletedTask;
|
||||
}
|
||||
|
||||
private async void ValidateAnnotationsClick(object sender, RoutedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user