fix(instances): Save -> Next, Create takes to name card (#1411)

This commit is contained in:
Joao Tiago 2018-05-09 11:27:33 +01:00 committed by Sérgio Ramos
parent d1b2ba0002
commit 7531e503f2
12 changed files with 15 additions and 12 deletions

View File

@ -175,7 +175,7 @@ export const List = ({
searchLabel="Filter instances"
searchable={!_loading}
actionLabel="Create Instance"
actionTo="/instances/~create"
actionTo="/instances/~create/name"
/>
)}
</ReduxForm>

View File

@ -170,7 +170,7 @@ const Affinity = ({
{!addOpen && exitingRule ? (
<Margin top={5}>
<Button type="button" component={Link} to={next}>
Save
Next
</Button>
</Margin>
) : null}
@ -186,7 +186,7 @@ export default compose(
const creatingRule = get(form, `${IC_AFF_F_ADD}.values`, null);
const exitingRule = get(values, IC_AFF_V_AFF, null);
const addOpen = get(values, IC_AFF_V_ADD_OPEN, false);
const addOpen = get(values, IC_AFF_V_ADD_OPEN, true);
const editOpen = get(values, IC_AFF_V_EDIT_OPEN, false);
return {

View File

@ -84,7 +84,7 @@ const CnsContainer = ({
</Cns>
<Margin top={5}>
<Button type="button" component={Link} to={next}>
Save
Next
</Button>
</Margin>
<Margin top={3}>

View File

@ -80,7 +80,7 @@ const Image = ({
/>
<Margin top="2">
<Button type="button" component={Link} to={next}>
Save
Next
</Button>
</Margin>
</Fragment>

View File

@ -49,6 +49,7 @@ export default ({
}
editor={Editor}
disabled={disabled}
shadow={false}
/>
{addOpen || index !== metadata.length - 1 ? (
<Margin bottom={2} />

View File

@ -90,6 +90,7 @@ const Metadata = ({
onCancel={() => handleChangeAddOpen(false)}
editor={Editor}
expanded
shadow={false}
/>
</Fragment>
) : (
@ -108,7 +109,7 @@ const Metadata = ({
</FlexItem>
<FlexItem>
<Button type="button" component={Link} to={next}>
Save
Next
</Button>
</FlexItem>
</Flex>

View File

@ -110,7 +110,7 @@ const Name = ({
</FormGroup>
<Margin top="5">
<Button type="button" component={Link} to={next}>
Save
Next
</Button>
</Margin>
</form>

View File

@ -114,7 +114,7 @@ const Network = ({
</Form>
<Margin top="5">
<Button type="button" component={Link} to={next}>
Save
Next
</Button>
</Margin>
</Fragment>

View File

@ -105,7 +105,7 @@ const PackageComponent = ({
</Packages>
<Margin top="4">
<Button type="button" component={Link} to={next}>
Save
Next
</Button>
</Margin>
</Fragment>

View File

@ -137,7 +137,7 @@ const TagsContainer = ({
</FlexItem>
<FlexItem>
<Button type="button" component={Link} to={next}>
Save
Next
</Button>
</FlexItem>
</Flex>

View File

@ -55,7 +55,7 @@ const UserScript = ({
<UserScriptForm {...props} />
<Margin top={5}>
<Button type="button" component={Link} to={next}>
Save
Next
</Button>
</Margin>
</Fragment>

View File

@ -189,6 +189,7 @@ export const KeyValue = ({
onlyValue = false,
noRemove = false,
borderless = false,
shadow = true,
customHeader,
headless = false
}) => {
@ -200,7 +201,7 @@ export const KeyValue = ({
actionable={Boolean(handleHeaderClick)}
borderless={borderless}
headless={headless}
shadow
shadow={shadow}
>
{headless ? null : (
<Header