Skip to content

Commit

Permalink
Fixes #37460 - Use weights for host columns in wizard
Browse files Browse the repository at this point in the history
  • Loading branch information
ofedoren authored and adamruzicka committed May 15, 2024
1 parent 868769f commit a7864ed
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions webpack/components/OpenscapRemediationWizard/steps/ReviewHosts.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable camelcase */
import React, { useContext, useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import {
Expand Down Expand Up @@ -160,11 +161,18 @@ const ReviewHosts = () => {
const columns = {
name: {
title: __('Name'),
wrapper: ({ id, name }) => <a href={foremanUrl(`hosts/${id}`)}>{name}</a>,
wrapper: ({ id, display_name: displayName }) => (
<a href={foremanUrl(`hosts/${id}`)}>{displayName}</a>
),
isSorted: true,
weight: 50,
isRequired: true,
},
operatingsystem_name: {
os_title: {
title: __('OS'),
wrapper: hostDetails => hostDetails?.operatingsystem_name,
isSorted: true,
weight: 200,
},
};

Expand Down

0 comments on commit a7864ed

Please sign in to comment.