foreman_ansible 17.0.6 → 17.0.7

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: 9bd93e18b2e50a9ac8be28a348ec465f3f66a7cd433e76f9d6deb151ad29ab31
4
- data.tar.gz: 5a610ce0ce6f270c71c890562c4e4e20cc50f2ce8f02dc37a3947fec06beb54f
3
+ metadata.gz: dd645b6ec753e8ce92665fe3066bf1dd0e75958b469ee59bef46a1cd5849fb13
4
+ data.tar.gz: 9214229a5415d6053ee2cd6c67b89c86313bfec3003ae0c90cd9bd9063625d2e
5
5
  SHA512:
6
- metadata.gz: a8b54da809fb12d72827fb110109c838bca660d1dd5b8e1aae6464e3121654166b6d9f70ea8b1e007704ec27424afdd2dd38266c117163dbf651953784f7cfa8
7
- data.tar.gz: e40609d8c4dcf5674fddb9804386f2721d222f46cae8a6ca368b90573268b925fab13dd3d762968afe492608a3517b42cfac6bc1d0ddec927566965acb64b02e
6
+ metadata.gz: bf7b0ba966b2d6b5112d974562b8a9e738ed969aa7dc615dc89c96f8a4b7772d3618b5b6fa4e6567570bac5f066fce34d27f684cd2d5730326289015f8887c54
7
+ data.tar.gz: 0f34a19864d03600031014666d6edc8f5f151abdbb1e4046eccc32935eeac7a1daa6f81b54837793f832daf96adb747228364237259b09c5ddfe3be02d8f4208
@@ -4,5 +4,5 @@
4
4
  # This way other parts of Foreman can just call ForemanAnsible::VERSION
5
5
  # and detect what version the plugin is running.
6
6
  module ForemanAnsible
7
- VERSION = '17.0.6'
7
+ VERSION = '17.0.7'
8
8
  end
@@ -22,7 +22,6 @@ const AnsiblePermissionDenied = props => {
22
22
 
23
23
  return (
24
24
  <EmptyState
25
- iconType="fa"
26
25
  icon="lock"
27
26
  header={__('Permission Denied')}
28
27
  description={description}
@@ -7,19 +7,19 @@ const noop = () => {};
7
7
  const fixtures = {
8
8
  'should render a role to add': {
9
9
  role: { name: 'test.role', id: 5 },
10
- icon: 'fa fa-plus-circle',
10
+ icon: 'plus-circle',
11
11
  onClick: noop,
12
12
  index: 0,
13
13
  },
14
14
  'should render a role to remove': {
15
15
  role: { name: 'test.role', id: 5 },
16
- icon: 'fa fa-minus-circle',
16
+ icon: 'minus-circle',
17
17
  onClick: noop,
18
18
  index: 0,
19
19
  },
20
20
  'should render inherited role to remove': {
21
21
  role: { name: 'test.role', id: 5, inherited: true },
22
- icon: 'fa fa-minus-circle',
22
+ icon: 'minus-circle',
23
23
  onClick: noop,
24
24
  index: 0,
25
25
  },
@@ -1,13 +1,25 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
 
4
- import { Icon } from 'patternfly-react';
4
+ import { Icon } from '@patternfly/react-core';
5
+ import { PlusCircleIcon, MinusCircleIcon } from '@patternfly/react-icons';
5
6
 
6
- const AnsibleRoleActionButton = ({ icon }) => (
7
- <button href="#" className="role-add-remove-btn">
8
- <Icon className="fa-2x" type="fa" name={icon} />
9
- </button>
10
- );
7
+ const iconMap = {
8
+ 'plus-circle': PlusCircleIcon,
9
+ 'minus-circle': MinusCircleIcon,
10
+ };
11
+
12
+ const AnsibleRoleActionButton = ({ icon }) => {
13
+ const IconComponent = iconMap[icon] || PlusCircleIcon;
14
+
15
+ return (
16
+ <button href="#" className="role-add-remove-btn">
17
+ <Icon size="2xl">
18
+ <IconComponent />
19
+ </Icon>
20
+ </button>
21
+ );
22
+ };
11
23
 
12
24
  AnsibleRoleActionButton.propTypes = {
13
25
  icon: PropTypes.string.isRequired,
@@ -42,7 +42,7 @@ const AssignedRolesList = ({
42
42
  key={role.id}
43
43
  role={role}
44
44
  index={idx}
45
- icon="fa fa-minus-circle"
45
+ icon="minus-circle"
46
46
  onClick={onRemoveRole}
47
47
  resourceName={resourceName}
48
48
  />
@@ -54,7 +54,7 @@ const AssignedRolesList = ({
54
54
  role={role}
55
55
  index={idx}
56
56
  moveValue={moveValue}
57
- icon="fa fa-minus-circle"
57
+ icon="minus-circle"
58
58
  onClick={onRemoveRole}
59
59
  resourceName={resourceName}
60
60
  />
@@ -29,7 +29,7 @@ const AvailableRolesList = ({
29
29
  <AnsibleRole
30
30
  key={role.id}
31
31
  role={role}
32
- icon="fa fa-plus-circle"
32
+ icon="plus-circle"
33
33
  onClick={onAddRole}
34
34
  index={index}
35
35
  />
@@ -22,7 +22,7 @@ exports[`AnsiblePermissionDenied should render 1`] = `
22
22
  }
23
23
  header="Permission Denied"
24
24
  icon="lock"
25
- iconType="fa"
26
25
  secondaryActions={Array []}
26
+ variant="xl"
27
27
  />
28
28
  `;
@@ -4,7 +4,7 @@ exports[`AnsibleRole should render a role to add 1`] = `
4
4
  <ListViewItem
5
5
  actions={
6
6
  <AnsibleRoleActionButton
7
- icon="fa fa-plus-circle"
7
+ icon="plus-circle"
8
8
  role={
9
9
  Object {
10
10
  "id": 5,
@@ -36,7 +36,7 @@ exports[`AnsibleRole should render a role to remove 1`] = `
36
36
  <ListViewItem
37
37
  actions={
38
38
  <AnsibleRoleActionButton
39
- icon="fa fa-minus-circle"
39
+ icon="minus-circle"
40
40
  role={
41
41
  Object {
42
42
  "id": 5,
@@ -8,7 +8,7 @@ exports[`AssignedRolesList should render 1`] = `
8
8
  className=""
9
9
  >
10
10
  <DropTarget(DragSource(Orderable(AnsibleRole)))
11
- icon="fa fa-minus-circle"
11
+ icon="minus-circle"
12
12
  index={0}
13
13
  key="1"
14
14
  moveValue={[Function]}
@@ -22,7 +22,7 @@ exports[`AssignedRolesList should render 1`] = `
22
22
  }
23
23
  />
24
24
  <DropTarget(DragSource(Orderable(AnsibleRole)))
25
- icon="fa fa-minus-circle"
25
+ icon="minus-circle"
26
26
  index={1}
27
27
  key="2"
28
28
  moveValue={[Function]}
@@ -28,7 +28,7 @@ exports[`AvailableRolesList should render 1`] = `
28
28
  timeout={300}
29
29
  >
30
30
  <AnsibleRole
31
- icon="fa fa-plus-circle"
31
+ icon="plus-circle"
32
32
  index={0}
33
33
  key="1"
34
34
  onClick={[Function]}
@@ -41,7 +41,7 @@ exports[`AvailableRolesList should render 1`] = `
41
41
  }
42
42
  />
43
43
  <AnsibleRole
44
- icon="fa fa-plus-circle"
44
+ icon="plus-circle"
45
45
  index={1}
46
46
  key="2"
47
47
  onClick={[Function]}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 17.0.6
4
+ version: 17.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia