@@ -45,6 +45,7 @@ IRepositoryForkService repositoryForkService
4545 . Subscribe ( tuple => CanResetMasterTracking = tuple . Item1 && tuple . Item2 ) ;
4646
4747 CreateFork = ReactiveCommand . CreateAsyncObservable ( OnCreateFork ) ;
48+ BackCommand = ReactiveCommand . Create ( ) ;
4849 }
4950
5051 public IRepositoryModel SourceRepository { get ; private set ; }
@@ -55,10 +56,14 @@ IRepositoryForkService repositoryForkService
5556
5657 public IReactiveCommand < Repository > CreateFork { get ; }
5758
59+ public IReactiveCommand < object > BackCommand { get ; }
60+
5861 public string Title => Resources . ForkRepositoryTitle ;
5962
6063 public IObservable < object > Done => CreateFork . Where ( repository => repository != null ) ;
6164
65+ public IObservable < object > Back => BackCommand . AsObservable ( ) ;
66+
6267 public async Task InitializeAsync ( ILocalRepositoryModel sourceRepository , IAccount destinationAccount , IConnection connection )
6368 {
6469 var modelService = await modelServiceFactory . CreateAsync ( connection ) ;
@@ -125,21 +130,22 @@ public bool AddUpstream
125130 set { this . RaiseAndSetIfChanged ( ref addUpstream , value ) ; }
126131 }
127132
128- bool canResetMasterTracking = true ;
133+ bool canResetMasterTracking ;
129134 public bool CanResetMasterTracking
130135 {
131136 get { return canResetMasterTracking ; }
132137 private set { this . RaiseAndSetIfChanged ( ref canResetMasterTracking , value ) ; }
133138 }
134139
135- bool resetMasterTracking = true ;
140+ bool resetMasterTracking ;
136141 public bool ResetMasterTracking
137142 {
138143 get { return resetMasterTracking ; }
139144 set { this . RaiseAndSetIfChanged ( ref resetMasterTracking , value ) ; }
140145 }
141146
142147 string error = null ;
148+
143149 public string Error
144150 {
145151 get { return error ; }
0 commit comments