feat(ui): move list-settings access from lists pane to tasks header
The gear button on list rows became noisy and overlapped with row selection. Moves it into the tasks island header where it targets the currently selected list. Lists pane regains a cleaner row layout. Also: swallow GetListConfig errors on fresh lists that have no row yet.
This commit is contained in:
@@ -101,6 +101,11 @@ public sealed partial class IslandsShellViewModel : ViewModelBase
|
||||
Lists.SelectionChanged += (_, _) => Tasks.LoadForList(Lists.SelectedList);
|
||||
Tasks.SelectionChanged += (_, _) => Details.Bind(Tasks.SelectedTask);
|
||||
Tasks.TasksChanged += (_, _) => _ = Lists.RefreshCountsAsync();
|
||||
Tasks.OpenListSettingsRequested += (_, _) =>
|
||||
{
|
||||
if (Lists.SelectedList is { } row)
|
||||
Lists.OpenListSettingsCommand.Execute(row);
|
||||
};
|
||||
Details.CloseDetail = () => Tasks.SelectedTask = null;
|
||||
Details.DeleteFromList = row =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user