Skip to content

Commit

Permalink
Refs #36793 - Addressed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
parthaa committed Oct 24, 2023
1 parent 5279578 commit 5b52d60
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/registries/foreman/settings/general.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
description: N_("Whether or not to show a menu to access experimental lab features (requires reload of page)"),
default: false,
full_name: N_('Show Experimental Labs'))
setting('new_hosts_pages',
setting('new_hosts_page',
type: :boolean,
description: N_("Whether or not to show the new overview page for All Hosts (requires reload of page)"),
default: false,
Expand Down
4 changes: 2 additions & 2 deletions app/registries/menu/loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ def self.load

menu.sub_menu :hosts_menu, :caption => N_('Hosts'), :icon => 'fa fa-server' do
menu.item :hosts, :caption => N_('All Hosts'),
:if => proc { !Setting[:new_hosts_pages] }
:if => proc { !Setting[:new_hosts_page] }
menu.item :newhosts, :caption => N_('All Hosts'),
:if => proc { Setting[:new_hosts_pages] },
:if => proc { Setting[:new_hosts_page] },
:url => '/new/hosts',
:url_hash => { :controller => 'api/v2/hosts', :action => 'index' }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const SelectAllCheckbox = ({
// Checkbox states: false = unchecked, null = partially-checked, true = checked
// Flow: All are selected -> click -> none are selected
// Some are selected -> click -> none are selected
// None are selected -> click -> page is selected
// None are selected -> click -> all are selected, or page is selected (depends on canSelectAll)
const onSelectAllCheckboxChange = checked => {
if (checked && selectionToggle !== null) {
if (!canSelectAll) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ReactConnectedSet extends Set {
export const useSet = initialArry => {
const [, setToggle] = useState(Date.now());
// needed because mutating a Ref won't cause React to rerender
const forceRender = () => setToggle(Date.now());
const forceRender = () => setToggle(Symbol());

Check failure on line 57 in webpack/assets/javascripts/react_app/components/PF4/TableIndexPage/Table/TableHooks.js

View workflow job for this annotation

GitHub Actions / test (12)

Expected Symbol to have a description

Check failure on line 57 in webpack/assets/javascripts/react_app/components/PF4/TableIndexPage/Table/TableHooks.js

View workflow job for this annotation

GitHub Actions / test (14)

Expected Symbol to have a description
const set = useRef(new ReactConnectedSet(initialArry, forceRender));
return set.current;
};
Expand Down

0 comments on commit 5b52d60

Please sign in to comment.