|
@@ -196,7 +196,7 @@ namespace InABox.DynamicGrid
|
|
|
{
|
|
|
element.EditorDefinition = editor;
|
|
|
|
|
|
- element.IsEnabled = editor.Editable == Editable.Enabled;
|
|
|
+ element.IsEnabled = editor.Editable.IsEditable();
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(editor.ToolTip))
|
|
|
{
|
|
@@ -497,7 +497,7 @@ namespace InABox.DynamicGrid
|
|
|
OnGridCustomiseEditor?.Invoke(this, column, editor);
|
|
|
}
|
|
|
|
|
|
- if (editor != null && editor.Editable != Editable.Hidden)
|
|
|
+ if (editor != null && editor.Editable.EditorVisible())
|
|
|
{
|
|
|
var page = string.IsNullOrWhiteSpace(editor.Page) ? iProp is StandardProperty ? "General" : "Custom Fields" : editor.Page;
|
|
|
var editPage = GetEditPage(page);
|
|
@@ -515,7 +515,7 @@ namespace InABox.DynamicGrid
|
|
|
{
|
|
|
OnGridCustomiseEditor?.Invoke(this, new DynamicGridColumn { ColumnName = parent.Name }, parentEditor);
|
|
|
}
|
|
|
- if(parentEditor is not null && parentEditor.Editable != Editable.Hidden)
|
|
|
+ if(parentEditor is not null && parentEditor.Editable.EditorVisible())
|
|
|
{
|
|
|
var page = string.IsNullOrWhiteSpace(parentEditor.Page)
|
|
|
? parent is StandardProperty
|