-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Clone dialog - Dont disable filter while loading list of Repositories #560
Clone dialog - Dont disable filter while loading list of Repositories #560
Conversation
…ialog. - Filterbox will be disabled if the loading fails, otherwise it will always be enabled.
|
Looks like one of my unit tests failed. I will check why and update. |
|
Yeah, it's failing here locally as well. |
|
@grokys I corrected logic and fixed unit tests now :) |
| filterTextIsEnabled = this.WhenAny(x => x.IsLoading, x => x.Value) | ||
| .Select(x => !x && repositories.UnfilteredCount > 0) | ||
| filterTextIsEnabled = this.WhenAny(x => x.IsLoading, | ||
| (loading) => loading.Value || repositories.UnfilteredCount > 0 && !LoadingFailed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny nit: we usually don't put brackets around a single lambda parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me correct this before you merge :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok fixed this.
|
Thanks @danwalmsley LGTM! If you could merge the latest changes from master in, I can merge. |
…s://github.com/danwalmsley/VisualStudio into clone-dialog-dont-disable-filter-while-loading
|
Should be ready if you guys are happy :) |
|
Merged 🎉 - thanks Dan! |
Hello all,
This PR addresses issues #108 and #517. I also added a few unit tests to cover this scenario.
:)