Skip to content

Commit

Permalink
Add TypePartDefinition to BagPartEditViewModel (#15798)
Browse files Browse the repository at this point in the history
  • Loading branch information
giannik committed Apr 21, 2024
1 parent eb43940 commit 05b79ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public override IDisplayResult Edit(BagPart bagPart, BuildPartEditorContext cont
m.Updater = context.Updater;
m.ContainedContentTypeDefinitions = await GetContainedContentTypesAsync(context.TypePartDefinition);
m.AccessibleWidgets = await GetAccessibleWidgetsAsync(bagPart.ContentItems, contentDefinitionManager);
m.TypePartDefinition = context.TypePartDefinition;
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@ public class BagPartEditViewModel

[BindNever]
public IEnumerable<BagPartWidgetViewModel> AccessibleWidgets { get; set; }

[BindNever]
public ContentTypePartDefinition TypePartDefinition { get; set; }
}
}

0 comments on commit 05b79ab

Please sign in to comment.