feat(ui): add RepoImportItemViewModel
This commit is contained in:
15
src/ClaudeDo.Ui/ViewModels/Modals/RepoImportItemViewModel.cs
Normal file
15
src/ClaudeDo.Ui/ViewModels/Modals/RepoImportItemViewModel.cs
Normal file
@@ -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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user