Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 389d41f

Browse files
author
Dan Walmsley
committed
Disable filter textbox when no loading has completed but no repositories where found.
1 parent a146021 commit 389d41f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/GitHub.App/ViewModels/RepositoryCloneViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public RepositoryCloneViewModel(
7777

7878
filterTextIsEnabled = this.WhenAny(x => x.IsLoading, x => x.LoadingFailed,
7979
(loading, loadingFailed) => !loadingFailed.Value)
80+
.Select(x => x || repositories.UnfilteredCount > 0)
8081
.ToProperty(this, x => x.FilterTextIsEnabled, initialValue: true);
8182

8283
this.WhenAny(x => x.FilterTextIsEnabled, x => x.IsLoading, x => x.LoadingFailed,

0 commit comments

Comments
 (0)