foreman_bootdisk 23.1.1 → 23.1.2
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 208dbf577c163b9e30626b55ee851f2961aff63610b3b9f79797f3091aab4f9e
|
4
|
+
data.tar.gz: 191f2f5643cf24cf24c9ba7861b2275451b60239054c3264c253483cf876db76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57c0c84dd47561115b1a0bfdd55f0e23eff66dbb1dca994b90172395060f5b75246f59eb1de79278132b77272b2d38a1ebe796d5911e4a39779f4cc9b6de0606
|
7
|
+
data.tar.gz: 6ea742b4687c526b1cf3f62983a94098d48d23123ca7b51aebe3bed716129a3c2b4f1b560c3c2e5fe74fc3b5d462bdbb90bd6875207f7c45fda9c5a7a215c90b
|
@@ -1,7 +1,12 @@
|
|
1
1
|
import React, { useEffect } from 'react';
|
2
2
|
import { useSelector, useDispatch } from 'react-redux';
|
3
3
|
|
4
|
-
import {
|
4
|
+
import {
|
5
|
+
DropdownItem,
|
6
|
+
DropdownGroup,
|
7
|
+
DropdownList,
|
8
|
+
Divider,
|
9
|
+
} from '@patternfly/react-core';
|
5
10
|
import {
|
6
11
|
BanIcon,
|
7
12
|
BuildIcon,
|
@@ -22,6 +27,7 @@ import {
|
|
22
27
|
selectIsLoading,
|
23
28
|
selectBootdiskOptions,
|
24
29
|
} from './HostBootdiskButtonsSelectors';
|
30
|
+
import './HostBootdiskButtons.scss';
|
25
31
|
|
26
32
|
const HostBootdiskButtons = () => {
|
27
33
|
const dispatch = useDispatch();
|
@@ -56,7 +62,7 @@ const HostBootdiskButtons = () => {
|
|
56
62
|
content = options.actions.map((action, i) => (
|
57
63
|
<DropdownItem
|
58
64
|
key={`bootdisk-${i}`}
|
59
|
-
|
65
|
+
to={foremanUrl(action.link)}
|
60
66
|
isDisabled={action.disabled}
|
61
67
|
description={action.description}
|
62
68
|
icon={iconComponent(action.icon)}
|
@@ -71,12 +77,15 @@ const HostBootdiskButtons = () => {
|
|
71
77
|
key="bootdisk-unavailable"
|
72
78
|
ouiaId="bootdisk button unavailable"
|
73
79
|
component="button"
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
+
to="#"
|
81
|
+
tooltipProps={{
|
82
|
+
content: sprintf(
|
83
|
+
__('Boot disk download not available for %s architecture'),
|
84
|
+
options.architectureName
|
85
|
+
),
|
86
|
+
entryDelay: 0,
|
87
|
+
exitDelay: 0,
|
88
|
+
}}
|
80
89
|
icon={<BanIcon />}
|
81
90
|
>
|
82
91
|
{__('Not available')}
|
@@ -85,9 +94,19 @@ const HostBootdiskButtons = () => {
|
|
85
94
|
}
|
86
95
|
|
87
96
|
return (
|
88
|
-
|
89
|
-
|
90
|
-
|
97
|
+
<>
|
98
|
+
<Divider component="li" />
|
99
|
+
<DropdownGroup
|
100
|
+
className="bootdisk-group-group"
|
101
|
+
label={__('Boot disk')}
|
102
|
+
key="bootdisk-group"
|
103
|
+
>
|
104
|
+
<DropdownList>
|
105
|
+
{isLoading ? <Loading showText={false} /> : content}
|
106
|
+
</DropdownList>
|
107
|
+
</DropdownGroup>
|
108
|
+
<Divider key="separator" />
|
109
|
+
</>
|
91
110
|
);
|
92
111
|
};
|
93
112
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_bootdisk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 23.1.
|
4
|
+
version: 23.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dominic Cleal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: theforeman-rubocop
|
@@ -143,6 +143,7 @@ files:
|
|
143
143
|
- webpack/index.js
|
144
144
|
- webpack/src/extensions/constants.js
|
145
145
|
- webpack/src/extensions/host/HostBootdiskButtons.js
|
146
|
+
- webpack/src/extensions/host/HostBootdiskButtons.scss
|
146
147
|
- webpack/src/extensions/host/HostBootdiskButtonsSelectors.js
|
147
148
|
- webpack/src/extensions/host/__tests__/HostBootdiskButtonsSelectors.test.js
|
148
149
|
- webpack/src/extensions/host/__tests__/__snapshots__/HostBootdiskButtonsSelectors.test.js.snap
|