Fixes the new Id/Guid property on members, ensures all tabs are expanded by default and removes that init logic from JS since we don't want it there.
This commit is contained in:
@@ -21,6 +21,12 @@ namespace Umbraco.Web.Models.ContentEditing
|
||||
[DataMember(Name = "alias")]
|
||||
public string Alias { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The expanded state of the tab
|
||||
/// </summary>
|
||||
[DataMember(Name = "open")]
|
||||
public bool Expanded { get; set; } = true;
|
||||
|
||||
[DataMember(Name = "properties")]
|
||||
public IEnumerable<T> Properties { get; set; }
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace Umbraco.Web.Models.Mapping
|
||||
{
|
||||
new ContentPropertyDisplay
|
||||
{
|
||||
Alias = string.Format("{0}id", Constants.PropertyEditors.InternalGenericPropertiesPrefix),
|
||||
Alias = $"{Constants.PropertyEditors.InternalGenericPropertiesPrefix}id",
|
||||
Label = _localizedTextService.Localize("general/id"),
|
||||
Value = new List<string> {member.Id.ToString(), member.Key.ToString()},
|
||||
View = "idwithguid"
|
||||
|
||||
Reference in New Issue
Block a user