Dashboard und Schnellnavigation fix
This commit is contained in:
@@ -28,8 +28,15 @@ public partial class GroupDocumentationTabView : UserControl
|
||||
var owner = TopLevel.GetTopLevel(this) as Window;
|
||||
if (owner is null) return null;
|
||||
|
||||
var options = new List<StudentOption> { GroupDocumentationTabViewModel.WholeGroupOption };
|
||||
options.AddRange(studentOptions);
|
||||
var vm = new DocumentationDialogViewModel(editing?.StudentId ?? Guid.Empty, editing,
|
||||
App.Services.GetRequiredService<IAttachmentStorage>(), studentOptions, groupId);
|
||||
App.Services.GetRequiredService<IAttachmentStorage>(), options, groupId);
|
||||
if (editing is null)
|
||||
{
|
||||
vm.SelectedStudent = GroupDocumentationTabViewModel.WholeGroupOption;
|
||||
vm.TypeName = DocumentationTypeDisplay.Label(DocumentationType.Planning);
|
||||
}
|
||||
var dialog = new DocumentationDialog { DataContext = vm };
|
||||
var saved = await dialog.ShowDialog<bool>(owner);
|
||||
if (!saved) vm.DiscardUnsavedAttachments();
|
||||
|
||||
Reference in New Issue
Block a user