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: bd3257bab9ef8d2bd81645a9bc07a72818436797704eb457b9c0cd96822c3d2e
4
- data.tar.gz: 2eab92f59d7a5ac630a1bc6032f46dc3d6d1eace620ddbaa4aebef7170a93175
3
+ metadata.gz: 208dbf577c163b9e30626b55ee851f2961aff63610b3b9f79797f3091aab4f9e
4
+ data.tar.gz: 191f2f5643cf24cf24c9ba7861b2275451b60239054c3264c253483cf876db76
5
5
  SHA512:
6
- metadata.gz: 87443ca44460fe71f04b47f76832ca5754d6f6ea2a0030714f01e6c873be0dfa3c268c011ed08df41347b346a50645f6a85cfa54dffb9fd90976f263bb93b709
7
- data.tar.gz: 7bb4e64a58ad842bbee07e89ded9b0a078a2447b062b96565fede150e410e97e06c50fdc77688aad7f16ac3b6a991e903f88d34ab05af6ce374399a557c5b7b7
6
+ metadata.gz: 57c0c84dd47561115b1a0bfdd55f0e23eff66dbb1dca994b90172395060f5b75246f59eb1de79278132b77272b2d38a1ebe796d5911e4a39779f4cc9b6de0606
7
+ data.tar.gz: 6ea742b4687c526b1cf3f62983a94098d48d23123ca7b51aebe3bed716129a3c2b4f1b560c3c2e5fe74fc3b5d462bdbb90bd6875207f7c45fda9c5a7a215c90b
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ForemanBootdisk
4
- VERSION = '23.1.1'
4
+ VERSION = '23.1.2'
5
5
  end
@@ -1,7 +1,12 @@
1
1
  import React, { useEffect } from 'react';
2
2
  import { useSelector, useDispatch } from 'react-redux';
3
3
 
4
- import { DropdownItem, DropdownGroup } from '@patternfly/react-core/deprecated';
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
- href={foremanUrl(action.link)}
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
- href="#"
75
- tooltip={sprintf(
76
- __('Boot disk download not available for %s architecture'),
77
- options.architectureName
78
- )}
79
- tooltipProps={{ entryDelay: 0, exitDelay: 0 }}
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
- <DropdownGroup label={__('Boot disk')} key="bootdisk-group">
89
- {isLoading ? <Loading showText={false} /> : content}
90
- </DropdownGroup>
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
 
@@ -0,0 +1,3 @@
1
+ .bootdisk-group-group > h1{
2
+ margin: 0;
3
+ }
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.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-07-28 00:00:00.000000000 Z
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