@spinnaker/core 0.24.0 → 0.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spinnaker/core",
3
3
  "license": "Apache-2.0",
4
- "version": "0.24.0",
4
+ "version": "0.24.1",
5
5
  "module": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
7
7
  "scripts": {
@@ -17,7 +17,7 @@
17
17
  "@apollo/client": "^3.6.9",
18
18
  "@fortawesome/fontawesome-free": "5.5.0",
19
19
  "@spinnaker/mocks": "1.0.7",
20
- "@spinnaker/presentation": "^0.2.1",
20
+ "@spinnaker/presentation": "^0.3.0",
21
21
  "@spinnaker/styleguide": "2.0.0",
22
22
  "@uirouter/angularjs": "1.0.26",
23
23
  "@uirouter/core": "6.0.8",
@@ -120,5 +120,5 @@
120
120
  "shx": "0.3.3",
121
121
  "typescript": "4.3.5"
122
122
  },
123
- "gitHead": "9961d9fa9c323f0e95ec06ede6e5a0d05c09febc"
123
+ "gitHead": "eb226ee64d23c8c34be5ace816809a2262917e3f"
124
124
  }
@@ -18,6 +18,7 @@ export interface IPipelineConfigActionsProps {
18
18
  }
19
19
 
20
20
  export function PipelineConfigActions(props: IPipelineConfigActionsProps) {
21
+ const closeDropdown = () => document.body.click();
21
22
  const {
22
23
  pipeline,
23
24
  renamePipeline,
@@ -36,7 +37,7 @@ export function PipelineConfigActions(props: IPipelineConfigActionsProps) {
36
37
  <Dropdown.Toggle className="btn btn-sm dropdown-toggle">
37
38
  {pipeline.strategy === true ? 'Strategy' : 'Pipeline'} Actions
38
39
  </Dropdown.Toggle>
39
- <Dropdown.Menu className="dropdown-menu">
40
+ <Dropdown.Menu className="dropdown-menu" onClick={closeDropdown}>
40
41
  {!pipeline.locked && <PipelineConfigAction name="Rename" action={renamePipeline} />}
41
42
  {!pipeline.locked && <PipelineConfigAction name="Delete" action={deletePipeline} />}
42
43
  {!pipeline.locked && pipeline.disabled && <PipelineConfigAction name="Enable" action={enablePipeline} />}