|
@@ -22,7 +22,7 @@ class Integrations extends Component<PropsType, StateType> {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
render = () => <StyledIntegrations><Switch>
|
|
render = () => <StyledIntegrations><Switch>
|
|
|
- <Route path="/integrations/create/:category/:integration" render={(rp) => {
|
|
|
|
|
|
|
+ <Route path="/integrations/:category/create/:integration" render={(rp) => {
|
|
|
const { integration, category } = rp.match.params;
|
|
const { integration, category } = rp.match.params;
|
|
|
if (!IntegrationCategoryStrings.includes(category)) {
|
|
if (!IntegrationCategoryStrings.includes(category)) {
|
|
|
this.props.history.push("/integrations");
|
|
this.props.history.push("/integrations");
|
|
@@ -36,7 +36,7 @@ class Integrations extends Component<PropsType, StateType> {
|
|
|
<Flex>
|
|
<Flex>
|
|
|
<i
|
|
<i
|
|
|
className="material-icons"
|
|
className="material-icons"
|
|
|
- onClick={() => this.props.history.push(`/integrations/category/${category}`)}
|
|
|
|
|
|
|
+ onClick={() => this.props.history.push(`/integrations/${category}`)}
|
|
|
>
|
|
>
|
|
|
keyboard_backspace
|
|
keyboard_backspace
|
|
|
</i>
|
|
</i>
|
|
@@ -47,7 +47,7 @@ class Integrations extends Component<PropsType, StateType> {
|
|
|
<CreateIntegrationForm
|
|
<CreateIntegrationForm
|
|
|
integrationName={integration}
|
|
integrationName={integration}
|
|
|
closeForm={() => {
|
|
closeForm={() => {
|
|
|
- this.props.history.push(`/integrations/category/${category}`)
|
|
|
|
|
|
|
+ this.props.history.push(`/integrations/${category}`)
|
|
|
}}
|
|
}}
|
|
|
/>
|
|
/>
|
|
|
<Br />
|
|
<Br />
|
|
@@ -55,7 +55,7 @@ class Integrations extends Component<PropsType, StateType> {
|
|
|
);
|
|
);
|
|
|
|
|
|
|
|
}} />
|
|
}} />
|
|
|
- <Route path="/integrations/category/:category" render={(rp) => {
|
|
|
|
|
|
|
+ <Route path="/integrations/:category" render={(rp) => {
|
|
|
const currentCategory = rp.match.params.category;
|
|
const currentCategory = rp.match.params.category;
|
|
|
if (!IntegrationCategoryStrings.includes(currentCategory)) {
|
|
if (!IntegrationCategoryStrings.includes(currentCategory)) {
|
|
|
this.props.history.push("/integrations");
|
|
this.props.history.push("/integrations");
|
|
@@ -73,7 +73,7 @@ class Integrations extends Component<PropsType, StateType> {
|
|
|
<IntegrationList
|
|
<IntegrationList
|
|
|
currentCategory={""}
|
|
currentCategory={""}
|
|
|
integrations={["kubernetes", "registry", "repo"]}
|
|
integrations={["kubernetes", "registry", "repo"]}
|
|
|
- setCurrent={(x) => this.props.history.push(`/integrations/category/${x}`)}
|
|
|
|
|
|
|
+ setCurrent={(x) => this.props.history.push(`/integrations/${x}`)}
|
|
|
isCategory={true}
|
|
isCategory={true}
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|