Skip to content

Commit

Permalink
minor provide attribute syssettings to edit-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
iJungleboy committed Oct 26, 2023
1 parent 9515ee5 commit c261407
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ToSic.Eav.WebApi/ContentType/ContentTypeApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using ToSic.Eav.Data.Build;
using ToSic.Eav.Data.Shared;
using ToSic.Eav.DataFormats.EavLight;
using ToSic.Eav.ImportExport.Json.V1;
using ToSic.Lib.Logging;
using ToSic.Eav.Repository.Efc;
using ToSic.Eav.Serialization;
Expand Down Expand Up @@ -231,6 +232,10 @@ public IEnumerable<ContentTypeFieldDto> GetFields(string staticName)

// Read-Only new in v13
EditInfo = new EditInfoAttributeDto(type, a),

// #SharedFieldDefinition
Guid = a.Guid,
SysSettings = JsonAttributeSysSettings.FromSysSettings(a.SysSettings),
};
});
}
Expand Down
10 changes: 9 additions & 1 deletion ToSic.Eav.WebApi/Dto/ContentTypeFieldDto.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using ToSic.Eav.Apps.Parts;
using ToSic.Eav.Data;
using ToSic.Eav.DataFormats.EavLight;
using ToSic.Eav.ImportExport.Json.V1;
using ToSic.Eav.WebApi.Security;

namespace ToSic.Eav.WebApi.Dto
Expand Down Expand Up @@ -36,5 +39,10 @@ public class ContentTypeFieldDto
public bool HasFormulas { get; set; }

public EditInfoAttributeDto EditInfo { get; set; }

// #SharedFieldDefinition
public Guid? Guid { get; set; }

public JsonAttributeSysSettings SysSettings { get; set; }
}
}

0 comments on commit c261407

Please sign in to comment.