Kapitel 7 abgeschlossen.
This commit is contained in:
@@ -39,6 +39,7 @@ public partial class PlanningTabViewModel : ObservableObject
|
||||
|
||||
[ObservableProperty] private UnitSummary? _selectedUnit;
|
||||
[ObservableProperty] private LessonSummary? _selectedLesson;
|
||||
[ObservableProperty] private bool _isReadOnly;
|
||||
|
||||
// Eigene Property statt "SelectedUnit.Title" im Binding-Pfad: SelectedUnit ist zwischen
|
||||
// Gruppenwechsel/Laden kurzzeitig null — ein verschachtelter Pfad würde dafür jedes Mal
|
||||
@@ -74,9 +75,10 @@ public partial class PlanningTabViewModel : ObservableObject
|
||||
_subjects = subjects; _competencyDomains = competencyDomains;
|
||||
}
|
||||
|
||||
public void Initialize(Guid groupId)
|
||||
public void Initialize(Guid groupId, bool isReadOnly = false)
|
||||
{
|
||||
_groupId = groupId;
|
||||
IsReadOnly = isReadOnly;
|
||||
var group = _groups.GetById(groupId);
|
||||
SubjectId = group?.SubjectId;
|
||||
GradeLevel = group?.GradeLevel ?? 0;
|
||||
|
||||
Reference in New Issue
Block a user