diff options
author | Aijana Schumann <aijana.schumann@highstreet-technologies.com> | 2020-10-07 16:36:59 +0200 |
---|---|---|
committer | Aijana Schumann <aijana.schumann@highstreet-technologies.com> | 2020-10-07 16:36:59 +0200 |
commit | 3ef0d18fcb16931a0c93d91ae6fbf8edda09ecc9 (patch) | |
tree | b4a731ec2311296e58280e0001ddc80ed26f9dac /sdnr/wt/odlux/apps/configurationApp/src/views | |
parent | aee5dc5c1a62ba13c792028e9eea5886a680eb79 (diff) |
ConfigApp bugfix
Fix interface list is not visible
Issue-ID: CCSDK-2880
Signed-off-by: Aijana Schumann <aijana.schumann@highstreet-technologies.com>
Change-Id: I090a298a925ada52eda603c8a24cf6d577a7b5e6
Diffstat (limited to 'sdnr/wt/odlux/apps/configurationApp/src/views')
-rw-r--r-- | sdnr/wt/odlux/apps/configurationApp/src/views/configurationApplication.tsx | 72 |
1 files changed, 2 insertions, 70 deletions
diff --git a/sdnr/wt/odlux/apps/configurationApp/src/views/configurationApplication.tsx b/sdnr/wt/odlux/apps/configurationApp/src/views/configurationApplication.tsx index fc3c68e88..7b927785d 100644 --- a/sdnr/wt/odlux/apps/configurationApp/src/views/configurationApplication.tsx +++ b/sdnr/wt/odlux/apps/configurationApp/src/views/configurationApplication.tsx @@ -332,6 +332,7 @@ class ConfigurationApplicationComponent extends React.Component<ConfigurationApp ? ( <Element key={uiElement.id} + isKey={isKey} inputValue={viewData[uiElement.id] == null ? '' : viewData[uiElement.id]} value={uiElement} readOnly={!canEdit} @@ -340,75 +341,6 @@ class ConfigurationApplicationComponent extends React.Component<ConfigurationApp /> ) : null ; } - - // // do not show elements w/o any value from the backend - // if (viewData[uiElement.id] == null && !editMode) { - // return null; - // } else if (isViewElementEmpty(uiElement)) { - // return null; - // } else if (uiElement.isList) { - // /* element is a leaf-list */ - // return <UiElementLeafList - // key={uiElement.id} - // inputValue={viewData[uiElement.id] || ''} - // value={uiElement} - // readOnly={!canEdit} - // disabled={editMode && !canEdit} - // onChange={(e) => { this.changeValueFor(uiElement.id, e) }} - // />; - // } else if (isViewElementSelection(uiElement)) { - - // return <UiElementSelection - // key={uiElement.id} - // inputValue={viewData[uiElement.id] || ''} - // value={uiElement} - // readOnly={!canEdit} - // disabled={editMode && !canEdit} - // onChange={(e) => { this.changeValueFor(uiElement.id, e) }} - // /> - - // } else if (isViewElementBoolean(uiElement)) { - // return <UiElementBoolean - // key={uiElement.id} - // inputValue={viewData[uiElement.id] == null ? '' : viewData[uiElement.id]} - // value={uiElement} - // readOnly={!canEdit} - // disabled={editMode && !canEdit} - // onChange={(e) => { this.changeValueFor(uiElement.id, e) }} /> - - // } else if (isViewElementString(uiElement)) { - // return <UiElementString - // key={uiElement.id} - // inputValue={viewData[uiElement.id] == null ? '' : viewData[uiElement.id]} - // value={uiElement} - // isKey={isKey} - // readOnly={!canEdit} - // disabled={editMode && !canEdit} - // onChange={(e) => { this.changeValueFor(uiElement.id, e) }} /> - - // } else if (isViewElementNumber(uiElement)) { - // return <UiElementNumber - // key={uiElement.id} - // value={uiElement} - // inputValue={viewData[uiElement.id] == null ? '' : viewData[uiElement.id]} - // readOnly={!canEdit} - // disabled={editMode && !canEdit} - // onChange={(e) => { this.changeValueFor(uiElement.id, e) }} /> - // } else if (isViewElementUnion(uiElement)) { - // return <UIElementUnion - // key={uiElement.id} - // isKey={false} - // value={uiElement} - // inputValue={viewData[uiElement.id] == null ? '' : viewData[uiElement.id]} - // readOnly={!canEdit} - // disabled={editMode && !canEdit} - // onChange={(e) => { this.changeValueFor(uiElement.id, e) }} /> - // } else { - // if (process.env.NODE_ENV !== "production") { - // console.error(`Unknown element type - ${(uiElement as any).uiType} in ${(uiElement as any).id}.`) - // } - // return null; - // } }; // private renderUIReference = (uiElement: ViewElement, viewData: { [key: string]: any }, keyProperty: string | undefined, editMode: boolean, isNew: boolean) => { @@ -817,4 +749,4 @@ class ConfigurationApplicationComponent extends React.Component<ConfigurationApp } export const ConfigurationApplication = withStyles(styles)(withRouter(connect(mapProps, mapDispatch)(ConfigurationApplicationComponent))); -export default ConfigurationApplication;
\ No newline at end of file +export default ConfigurationApplication; |