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

Commit 2413d75

Browse files
Adding DestinationAccount to the interface
1 parent f364543 commit 2413d75

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/GitHub.App/SampleData/ForkRepositoryExecuteViewModelDesigner.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public ForkRepositoryExecuteViewModelDesigner()
2525
Name = "VisualStudio",
2626
CloneUrl = "https://github.com/user/VisualStudio",
2727
};
28+
DestinationAccount = new AccountDesigner();
2829
}
2930

3031
public IObservable<object> Done => null;
@@ -35,6 +36,8 @@ public ForkRepositoryExecuteViewModelDesigner()
3536

3637
public IRepositoryModel DestinationRepository { get; set; }
3738

39+
public IAccount DestinationAccount { get; }
40+
3841
public IReactiveCommand<Repository> CreateFork => null;
3942

4043
public bool ResetMasterTracking { get; set; } = true;

src/GitHub.App/ViewModels/Dialog/ForkRepositoryExecuteViewModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ IRepositoryForkService repositoryForkService
4646
public IRepositoryModel SourceRepository { get; private set; }
4747

4848
public IAccount DestinationAccount { get; private set; }
49+
4950
public IRepositoryModel DestinationRepository { get; private set; }
5051

5152
public IReactiveCommand<Repository> CreateFork { get; }

src/GitHub.Exports.Reactive/ViewModels/Dialog/IForkRepositoryExecuteViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ public interface IForkRepositoryExecuteViewModel : IDialogContentViewModel
1616

1717
IRepositoryModel DestinationRepository { get; }
1818

19+
IAccount DestinationAccount { get; }
20+
1921
/// <summary>
2022
/// Gets a command that is executed when the user clicks the "Fork" button.
2123
/// </summary>

0 commit comments

Comments
 (0)