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" searchLabel="Filter instances"
searchable={!_loading} searchable={!_loading}
actionLabel="Create Instance" actionLabel="Create Instance"
actionTo="/instances/~create" actionTo="/instances/~create/name"
/> />
)} )}
</ReduxForm> </ReduxForm>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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