refactor: use context menus to manage selected projects
This MR adds context menus for the repository Tree View items. We can use these menus to select which project should be loaded and clear this selection from memory.
This change is behind the model-refactor
feature flag.
In more detail, this MR:
- makes the project repository observable and the issue Tree View now refreshes if there are project changes (only if the feature flag is on)
- introduces two new TreeView items (
NoProjectItem
andProjectItem
), which have new context menus - adds context menu on the
MultipleProjectsItem
- implements commands that are triggered from the context menus
Related to #558 (closed)
Edited by Tomas Vik