{
- this.props.Entry.SubEntries.map((entry, idx) =>
-
-
- {entry.DisplayName}
-
-
-
-
-
-
-
-
-
- {this.preRenderConfigEditor(entry)}
-
-
,
- )
+ this.props.Entry.SubEntries.map((entry, idx) => {
+ if (Entry.isClassOrCollection(entry)) {
+ return (
+
+
+ {entry.DisplayName}
+
+
+
+
+
+
+
+
+
+ {this.preRenderConfigEditor(entry)}
+
+
+ );
+ } else {
+ return (
+
+
+ {this.preRenderConfigEditor(entry)}
+
+
+
+
+
+
+
+ );
+ }
+ })
}
diff --git a/src/Moryx.Runtime.Maintenance.Web.UI/src/modules/models/Entry.ts b/src/Moryx.Runtime.Maintenance.Web.UI/src/modules/models/Entry.ts
index bd491b2..8e2457d 100644
--- a/src/Moryx.Runtime.Maintenance.Web.UI/src/modules/models/Entry.ts
+++ b/src/Moryx.Runtime.Maintenance.Web.UI/src/modules/models/Entry.ts
@@ -7,6 +7,7 @@ import uuidv1 = require("uuid/v1");
import Config from "./Config";
import EntryValidation from "./EntryValidation";
import EntryValue from "./EntryValue";
+import { EntryValueType } from "./EntryValueType";
export default class Entry {
public DisplayName: string;
@@ -27,6 +28,10 @@ export default class Entry {
this.Validation = new EntryValidation();
}
+ public static isClassOrCollection(entry: Entry): boolean {
+ return entry.Value.Type === EntryValueType.Class || entry.Value.Type === EntryValueType.Collection;
+ }
+
public static entryChain(entry: Entry): Entry[] {
const entryChain: Entry[] = [entry];
let currentEntry = entry;