feat: introduce asterisk for all the required fields
This commit is contained in:
@@ -128,6 +128,7 @@ function ChooseAppAndEventSubstep(props) {
|
|||||||
<TextField
|
<TextField
|
||||||
{...params}
|
{...params}
|
||||||
label={formatMessage('flowEditor.chooseApp')}
|
label={formatMessage('flowEditor.chooseApp')}
|
||||||
|
required
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
value={getOption(appOptions, step.appKey) || null}
|
value={getOption(appOptions, step.appKey) || null}
|
||||||
@@ -154,6 +155,7 @@ function ChooseAppAndEventSubstep(props) {
|
|||||||
<TextField
|
<TextField
|
||||||
{...params}
|
{...params}
|
||||||
label={formatMessage('flowEditor.chooseEvent')}
|
label={formatMessage('flowEditor.chooseEvent')}
|
||||||
|
required
|
||||||
InputProps={{
|
InputProps={{
|
||||||
...params.InputProps,
|
...params.InputProps,
|
||||||
endAdornment: (
|
endAdornment: (
|
||||||
|
@@ -30,7 +30,7 @@ const optionGenerator = (connection) => ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const getOption = (options, connectionId) =>
|
const getOption = (options, connectionId) =>
|
||||||
options.find((connection) => connection.value === connectionId) || null;
|
options.find((connection) => connection.value === connectionId) || undefined;
|
||||||
|
|
||||||
function ChooseConnectionSubstep(props) {
|
function ChooseConnectionSubstep(props) {
|
||||||
const {
|
const {
|
||||||
@@ -205,6 +205,7 @@ function ChooseConnectionSubstep(props) {
|
|||||||
label={formatMessage(
|
label={formatMessage(
|
||||||
'chooseConnectionSubstep.chooseConnection',
|
'chooseConnectionSubstep.chooseConnection',
|
||||||
)}
|
)}
|
||||||
|
required
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
value={getOption(connectionOptions, connection?.id)}
|
value={getOption(connectionOptions, connection?.id)}
|
||||||
|
@@ -183,7 +183,7 @@ function ControlledCustomAutocomplete(props) {
|
|||||||
variant="outlined"
|
variant="outlined"
|
||||||
sx={{ bgcolor: 'white', display: 'inline-block', px: 0.75 }}
|
sx={{ bgcolor: 'white', display: 'inline-block', px: 0.75 }}
|
||||||
>
|
>
|
||||||
{label}
|
{`${label}${required ? ' *' : ''}`}
|
||||||
</InputLabel>
|
</InputLabel>
|
||||||
</InputLabelWrapper>
|
</InputLabelWrapper>
|
||||||
|
|
||||||
|
@@ -63,7 +63,7 @@ export default function InputCreator(props) {
|
|||||||
disablePortal
|
disablePortal
|
||||||
disableClearable={required}
|
disableClearable={required}
|
||||||
options={preparedOptions}
|
options={preparedOptions}
|
||||||
renderInput={(params) => <MuiTextField {...params} label={label} />}
|
renderInput={(params) => <MuiTextField {...params} label={label} required={required}/>}
|
||||||
defaultValue={value}
|
defaultValue={value}
|
||||||
description={description}
|
description={description}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
@@ -83,13 +83,13 @@ export default function InputCreator(props) {
|
|||||||
disablePortal
|
disablePortal
|
||||||
disableClearable={required}
|
disableClearable={required}
|
||||||
options={preparedOptions}
|
options={preparedOptions}
|
||||||
renderInput={(params) => <MuiTextField {...params} label={label} />}
|
|
||||||
defaultValue={value}
|
defaultValue={value}
|
||||||
description={description}
|
description={description}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
showOptionValue={showOptionValue}
|
showOptionValue={showOptionValue}
|
||||||
shouldUnregister={shouldUnregister}
|
shouldUnregister={shouldUnregister}
|
||||||
|
required={required}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
@@ -98,7 +98,7 @@ const PowerInput = (props) => {
|
|||||||
variant="outlined"
|
variant="outlined"
|
||||||
sx={{ bgcolor: 'white', display: 'inline-block', px: 0.75 }}
|
sx={{ bgcolor: 'white', display: 'inline-block', px: 0.75 }}
|
||||||
>
|
>
|
||||||
{label}
|
{`${label}${required ? ' *' : ''}`}
|
||||||
</InputLabel>
|
</InputLabel>
|
||||||
</InputLabelWrapper>
|
</InputLabelWrapper>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user