foreman_bootdisk 23.1.0 → 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: 7115babe231d5d12bf7cf520823714559a7f9c9435df2aff0f1e30e431bef3d7
4
- data.tar.gz: e0ef9f391e1a762225c6e02c81c8312645d4639420b53db8f40f88f7bf7d608a
3
+ metadata.gz: 208dbf577c163b9e30626b55ee851f2961aff63610b3b9f79797f3091aab4f9e
4
+ data.tar.gz: 191f2f5643cf24cf24c9ba7861b2275451b60239054c3264c253483cf876db76
5
5
  SHA512:
6
- metadata.gz: 7a528c3019743c86ce6920ae26c3ede482c73ab60a31b9dc631c3eb5bedb64c1735b8b05250e5c8e41f0154689f5e06b01a97ea484bdf86a279da1c9773d9a11
7
- data.tar.gz: f0291a50c6b5ed15cedbeb76fd3862ccafd830b6ae1cb8fad0f90eed3e51ba3c796bdef5c00b067f4159b97b4d1ca63f005605f52bb00879e75c1696e089dea5
6
+ metadata.gz: 57c0c84dd47561115b1a0bfdd55f0e23eff66dbb1dca994b90172395060f5b75246f59eb1de79278132b77272b2d38a1ebe796d5911e4a39779f4cc9b6de0606
7
+ data.tar.gz: 6ea742b4687c526b1cf3f62983a94098d48d23123ca7b51aebe3bed716129a3c2b4f1b560c3c2e5fe74fc3b5d462bdbb90bd6875207f7c45fda9c5a7a215c90b
@@ -133,6 +133,7 @@ module ForemanBootdisk
133
133
  File.join(wd, 'build', 'grub-hdd.cfg').to_s => 'GRUB.CFG',
134
134
  File.join(Setting[:bootdisk_grub2_dir], 'grubx64.efi').to_s => 'GRUBX64.EFI',
135
135
  File.join(Setting[:bootdisk_grub2_dir], 'shimx64.efi').to_s => 'BOOTX64.EFI',
136
+ File.join(Setting[:bootdisk_grub2_dir], 'mmx64.efi').to_s => 'MMX64.EFI',
136
137
  }.each do |src, dest|
137
138
  raise(Foreman::Exception.new(N_('Ensure %{file} is readable (or update "Grub2 directory" setting)'), file: src)) unless File.exist?(src)
138
139
  raise(Foreman::Exception.new(N_('Unable to mcopy %{file}'), file: src)) unless system("mcopy -m -i #{efibootimg} '#{src}' '#{"::/EFI/BOOT/#{dest}"}'")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ForemanBootdisk
4
- VERSION = '23.1.0'
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,10 +62,11 @@ 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)}
69
+ ouiaId={`bootdisk button ${i}`}
63
70
  >
64
71
  {action.title}
65
72
  </DropdownItem>
@@ -68,13 +75,17 @@ const HostBootdiskButtons = () => {
68
75
  content = (
69
76
  <DropdownItem
70
77
  key="bootdisk-unavailable"
78
+ ouiaId="bootdisk button unavailable"
71
79
  component="button"
72
- href="#"
73
- tooltip={sprintf(
74
- __('Boot disk download not available for %s architecture'),
75
- options.architectureName
76
- )}
77
- 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
+ }}
78
89
  icon={<BanIcon />}
79
90
  >
80
91
  {__('Not available')}
@@ -83,9 +94,19 @@ const HostBootdiskButtons = () => {
83
94
  }
84
95
 
85
96
  return (
86
- <DropdownGroup label={__('Boot disk')} key="bootdisk-group">
87
- {isLoading ? <Loading showText={false} /> : content}
88
- </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
+ </>
89
110
  );
90
111
  };
91
112
 
@@ -0,0 +1,3 @@
1
+ .bootdisk-group-group > h1{
2
+ margin: 0;
3
+ }
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_bootdisk
3
3
  version: !ruby/object:Gem::Version
4
- version: 23.1.0
4
+ version: 23.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Cleal
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 2025-06-03 00:00:00.000000000 Z
11
+ date: 2025-09-16 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: theforeman-rubocop
@@ -142,6 +143,7 @@ files:
142
143
  - webpack/index.js
143
144
  - webpack/src/extensions/constants.js
144
145
  - webpack/src/extensions/host/HostBootdiskButtons.js
146
+ - webpack/src/extensions/host/HostBootdiskButtons.scss
145
147
  - webpack/src/extensions/host/HostBootdiskButtonsSelectors.js
146
148
  - webpack/src/extensions/host/__tests__/HostBootdiskButtonsSelectors.test.js
147
149
  - webpack/src/extensions/host/__tests__/__snapshots__/HostBootdiskButtonsSelectors.test.js.snap
@@ -149,6 +151,7 @@ homepage: https://github.com/theforeman/foreman_bootdisk
149
151
  licenses:
150
152
  - GPL-3.0
151
153
  metadata: {}
154
+ post_install_message:
152
155
  rdoc_options: []
153
156
  require_paths:
154
157
  - lib
@@ -166,7 +169,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
169
  - !ruby/object:Gem::Version
167
170
  version: '0'
168
171
  requirements: []
169
- rubygems_version: 3.6.2
172
+ rubygems_version: 3.2.33
173
+ signing_key:
170
174
  specification_version: 4
171
175
  summary: Create boot disks to provision hosts with Foreman
172
176
  test_files: []