|
@@ -8,14 +8,16 @@ import styled from "styled-components";
|
|
|
import { SourceType } from "./SourceSelector";
|
|
import { SourceType } from "./SourceSelector";
|
|
|
import ActionConfEditorStack from "components/repo-selector/ActionConfEditorStack";
|
|
import ActionConfEditorStack from "components/repo-selector/ActionConfEditorStack";
|
|
|
import { ActionConfigType, BuildConfig } from "shared/types";
|
|
import { ActionConfigType, BuildConfig } from "shared/types";
|
|
|
-import { RouteComponentProps } from "react-router";
|
|
|
|
|
|
|
+import { RouteComponentProps, withRouter } from "react-router";
|
|
|
import { Context } from "shared/Context";
|
|
import { Context } from "shared/Context";
|
|
|
import ActionConfBranchSelector from "components/repo-selector/ActionConfBranchSelector";
|
|
import ActionConfBranchSelector from "components/repo-selector/ActionConfBranchSelector";
|
|
|
import DetectContentsList from "components/repo-selector/DetectContentsList";
|
|
import DetectContentsList from "components/repo-selector/DetectContentsList";
|
|
|
import { pushFiltered } from "shared/routing";
|
|
import { pushFiltered } from "shared/routing";
|
|
|
import ImageSelector from "components/image-selector/ImageSelector";
|
|
import ImageSelector from "components/image-selector/ImageSelector";
|
|
|
import SharedBuildSettings from "../expanded-app/SharedBuildSettings";
|
|
import SharedBuildSettings from "../expanded-app/SharedBuildSettings";
|
|
|
-type Props = {
|
|
|
|
|
|
|
+import Link from "components/porter/Link";
|
|
|
|
|
+
|
|
|
|
|
+type Props = RouteComponentProps & {
|
|
|
source: SourceType | undefined;
|
|
source: SourceType | undefined;
|
|
|
imageUrl: string;
|
|
imageUrl: string;
|
|
|
setImageUrl: (x: string) => void;
|
|
setImageUrl: (x: string) => void;
|
|
@@ -103,14 +105,15 @@ const SourceSettings: React.FC<Props> = ({
|
|
|
<Subtitle>
|
|
<Subtitle>
|
|
|
Specify the container image you would like to connect to this
|
|
Specify the container image you would like to connect to this
|
|
|
template.
|
|
template.
|
|
|
- <Highlight
|
|
|
|
|
|
|
+ <Spacer inline width="5px" />
|
|
|
|
|
+ <Link
|
|
|
|
|
+ hasunderline
|
|
|
onClick={() =>
|
|
onClick={() =>
|
|
|
pushFiltered(props, "/integrations/registry", ["project_id"])
|
|
pushFiltered(props, "/integrations/registry", ["project_id"])
|
|
|
}
|
|
}
|
|
|
>
|
|
>
|
|
|
Manage Docker registries
|
|
Manage Docker registries
|
|
|
- </Highlight>
|
|
|
|
|
- <Required>*</Required>
|
|
|
|
|
|
|
+ </Link>
|
|
|
</Subtitle>
|
|
</Subtitle>
|
|
|
<DarkMatter antiHeight="-4px" />
|
|
<DarkMatter antiHeight="-4px" />
|
|
|
<ImageSelector
|
|
<ImageSelector
|
|
@@ -160,7 +163,7 @@ const SourceSettings: React.FC<Props> = ({
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-export default SourceSettings;
|
|
|
|
|
|
|
+export default withRouter(SourceSettings);
|
|
|
|
|
|
|
|
const SourceSettingsContainer = styled.div``;
|
|
const SourceSettingsContainer = styled.div``;
|
|
|
|
|
|
|
@@ -177,12 +180,6 @@ const Subtitle = styled.div`
|
|
|
line-height: 1.6em;
|
|
line-height: 1.6em;
|
|
|
`;
|
|
`;
|
|
|
|
|
|
|
|
-const Required = styled.div`
|
|
|
|
|
- margin-left: 8px;
|
|
|
|
|
- color: #fc4976;
|
|
|
|
|
- display: inline-block;
|
|
|
|
|
-`;
|
|
|
|
|
-
|
|
|
|
|
const CloseButton = styled.div`
|
|
const CloseButton = styled.div`
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
display: block;
|
|
display: block;
|