aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/configurationApp/src/components
diff options
context:
space:
mode:
authorAijana Schumann <aijana.schumann@highstreet-technologies.com>2020-10-07 16:36:59 +0200
committerAijana Schumann <aijana.schumann@highstreet-technologies.com>2020-10-07 16:36:59 +0200
commit3ef0d18fcb16931a0c93d91ae6fbf8edda09ecc9 (patch)
treeb4a731ec2311296e58280e0001ddc80ed26f9dac /sdnr/wt/odlux/apps/configurationApp/src/components
parentaee5dc5c1a62ba13c792028e9eea5886a680eb79 (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/components')
-rw-r--r--sdnr/wt/odlux/apps/configurationApp/src/components/baseProps.ts5
-rw-r--r--sdnr/wt/odlux/apps/configurationApp/src/components/uiElementString.tsx6
2 files changed, 6 insertions, 5 deletions
diff --git a/sdnr/wt/odlux/apps/configurationApp/src/components/baseProps.ts b/sdnr/wt/odlux/apps/configurationApp/src/components/baseProps.ts
index 73812a4b8..c08f5c9bc 100644
--- a/sdnr/wt/odlux/apps/configurationApp/src/components/baseProps.ts
+++ b/sdnr/wt/odlux/apps/configurationApp/src/components/baseProps.ts
@@ -23,5 +23,6 @@ export type BaseProps<TValue = string> = {
inputValue: TValue,
readOnly: boolean,
disabled: boolean,
- onChange(newValue: TValue): void
-};
+ onChange(newValue: TValue): void,
+ isKey?: boolean
+}; \ No newline at end of file
diff --git a/sdnr/wt/odlux/apps/configurationApp/src/components/uiElementString.tsx b/sdnr/wt/odlux/apps/configurationApp/src/components/uiElementString.tsx
index 95841b75d..122f7150a 100644
--- a/sdnr/wt/odlux/apps/configurationApp/src/components/uiElementString.tsx
+++ b/sdnr/wt/odlux/apps/configurationApp/src/components/uiElementString.tsx
@@ -23,7 +23,7 @@ import { BaseProps } from "./baseProps";
import { IfWhenTextInput } from "./ifWhenTextInput";
import { checkRange, checkPattern } from "./verifyer";
-type stringEntryProps = BaseProps & { isKey: boolean };
+type stringEntryProps = BaseProps;
export const UiElementString = (props: stringEntryProps) => {
@@ -71,7 +71,7 @@ export const UiElementString = (props: stringEntryProps) => {
<Tooltip title={isTooltipVisible ? element.description || '' : ''}>
<IfWhenTextInput element={element} onChangeTooltipVisuability={setTooltipVisibility}
spellCheck={false} autoFocus margin="dense"
- id={element.id} label={props.isKey ? "🔑 " + element.label : element.label} type="text" value={props.inputValue}
+ id={element.id} label={props?.isKey ? "🔑 " + element.label : element.label} type="text" value={props.inputValue}
style={{ width: 485, marginLeft: 20, marginRight: 20 }}
onChange={(e: any) => { verifyValues(e.target.value) }}
error={isError}
@@ -81,4 +81,4 @@ export const UiElementString = (props: stringEntryProps) => {
/>
</Tooltip>
);
-} \ No newline at end of file
+}