diff --git a/src/ClaudeDo.Ui/ViewModels/Modals/RepoImportItemViewModel.cs b/src/ClaudeDo.Ui/ViewModels/Modals/RepoImportItemViewModel.cs new file mode 100644 index 0000000..10773a1 --- /dev/null +++ b/src/ClaudeDo.Ui/ViewModels/Modals/RepoImportItemViewModel.cs @@ -0,0 +1,15 @@ +using CommunityToolkit.Mvvm.ComponentModel; + +namespace ClaudeDo.Ui.ViewModels.Modals; + +public sealed partial class RepoImportItemViewModel : ViewModelBase +{ + public string Name { get; init; } = ""; + public string FullPath { get; init; } = ""; + + // True when a list already points at this path. Such rows are shown ticked + disabled. + public bool AlreadyAdded { get; init; } + public bool CanToggle => !AlreadyAdded; + + [ObservableProperty] private bool _isChecked; +}