forked from freeipa/freeipa-webui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 239 - Implement host text input settings
Implement the Text inputs on the host settings page. Had to implement the entire CI layer, but it will make the other components easier to add. Signed-off-by: Mark Reynolds <mreynolds@redhat.com>
- Loading branch information
1 parent
83c22fd
commit a6c5c62
Showing
17 changed files
with
613 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from "react"; | ||
// PatternFly | ||
import { TextArea } from "@patternfly/react-core"; | ||
import { | ||
IPAParamDefinition, | ||
getParamProperties, | ||
convertToString, | ||
} from "src/utils/ipaObjectUtils"; | ||
|
||
const IpaTextArea = (props: IPAParamDefinition) => { | ||
const { required, readOnly, value, onChange } = getParamProperties(props); | ||
|
||
return ( | ||
<TextArea | ||
id={props.name} | ||
name={props.name} | ||
value={convertToString(value)} | ||
onChange={(_event, value) => onChange(value)} | ||
aria-label={props.name} | ||
isRequired={required} | ||
readOnlyVariant={readOnly ? "plain" : undefined} | ||
autoResize | ||
/> | ||
); | ||
}; | ||
|
||
export default IpaTextArea; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.