feat(ui): wire layer A/B conflict seams to the inline resolver
This commit is contained in:
@@ -227,6 +227,7 @@ public sealed partial class IslandsShellViewModel : ViewModelBase
|
||||
_ = Lists.RefreshCountsAsync();
|
||||
return System.Threading.Tasks.Task.CompletedTask;
|
||||
};
|
||||
Details.RequestConflictResolution = RequestConflictResolutionAsync;
|
||||
Worker.PropertyChanged += (_, e) =>
|
||||
{
|
||||
if (e.PropertyName is nameof(WorkerClient.IsConnected) or nameof(WorkerClient.IsReconnecting))
|
||||
|
||||
@@ -81,6 +81,10 @@ public partial class MainWindow : Window
|
||||
var mergeDlg = new MergeModalView { DataContext = mergeVm };
|
||||
await mergeDlg.ShowDialog(this);
|
||||
};
|
||||
modal.RequestConflictResolution = (taskId, target) =>
|
||||
DataContext is IslandsShellViewModel s
|
||||
? s.RequestConflictResolutionAsync(taskId, target)
|
||||
: System.Threading.Tasks.Task.CompletedTask;
|
||||
await dlg.ShowDialog(this);
|
||||
};
|
||||
vm.ShowRepoImportModal = async (modal) =>
|
||||
|
||||
Reference in New Issue
Block a user