Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort and pagination. #2286

Closed
wants to merge 18 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Account combobox is reset.
dhoehna committed Feb 20, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit d9e5151c68959ece5515dd6943ee53b2298804df
Original file line number Diff line number Diff line change
@@ -378,6 +378,9 @@ private void CancelButtonPressed()
[ObservableProperty]
private Frame _loginUiContent;

[ObservableProperty]
private int _accountIndex;

/// <summary>
/// Switches the repos shown to the account selected.
/// </summary>
@@ -546,6 +549,7 @@ public AddRepoViewModel(
UrlParsingError = string.Empty;
ShouldShowUrlError = false;
ShowErrorTextBox = false;
_accountIndex = -1;
}

/// <summary>
@@ -619,6 +623,8 @@ public void ChangeToUrlPage()

public void ChangeToAccountPage()
{
AccountIndex = -1;

// List of extensions needs to be refreshed before accessing
GetExtensions();
if (ProviderNames.Count == 1)
2 changes: 1 addition & 1 deletion tools/SetupFlow/DevHome.SetupFlow/Views/AddRepoDialog.xaml
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@
HorizontalAlignment="Stretch"
x:Uid="ms-resource:///DevHome.SetupFlow/Resources/RepositoryDisplay"
ItemsSource="{x:Bind AddRepoViewModel.ProviderNames}"
SelectedItem="{x:Bind AddRepoViewModel.SelectedRepoProvider, Mode=TwoWay}"
SelectedIndex="{x:Bind AddRepoViewModel.AccountIndex, Mode=TwoWay}"
Margin="0, 20, 0, 0" >
<i:Interaction.Behaviors>
<ic:EventTriggerBehavior EventName="SelectionChanged">