foreman_puppet 10.1.2 → 10.1.3

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: 9edaa3aaaede37486a9ff4be680ae2e8757e082c3e0ca35526fcdd9ee527fc24
4
- data.tar.gz: c6ee6bc2506d114ecf74f12e52a6f0c48daeb6d98c81656221de90d16ba81797
3
+ metadata.gz: cee4c4bc88e7e50cc6215f4d63bce66361304d94687507338c89333f3bd81e39
4
+ data.tar.gz: db7d58c859b13521f37097955a30da8f23d8437934f1a307907a6ab6c73c6f6c
5
5
  SHA512:
6
- metadata.gz: 4c61c040b50261ffb7c61436a53a11dd3f494a3626e217675f1ba8a46506419de7a87fee0f2948d6a62ce8090613456aa6b5de8d95145d42c1eb797a54388b46
7
- data.tar.gz: ba4ae6b16634bdb15a45c9838fd60078c3fa7bafb4a07002f5708c483bf4817ee41f5b4cc654f7c3d945f260e676450ff69ee7a656f6e6cda14b603a2d556fd8
6
+ metadata.gz: 5ffcc0c52303eb7b4e402351d56536449396888f98038756acf318ec38b0dd9616d003747d6edc987ebd08a7b68f8c46328052a468eea0e5cd8dc31c617dc1af
7
+ data.tar.gz: '048e3527e272f20bba27026fd9d65cdfc00686cf8a4bdc6ad078f5e3fee6e874ee3eef042a9694369a282d5a7a201b324fb99d2d8b4c50069345dbd220fe620a'
@@ -1,3 +1,3 @@
1
1
  module ForemanPuppet
2
- VERSION = '10.1.2'.freeze
2
+ VERSION = '10.1.3'.freeze
3
3
  end
@@ -12,6 +12,8 @@ import BulkChangePuppetCAProxy from './src/Extends/Hosts/BulkActions/BulkChangeP
12
12
  import BulkRemovePuppetProxy from './src/Extends/Hosts/BulkActions/BulkRemovePuppetProxy';
13
13
  import BulkRemovePuppetCAProxy from './src/Extends/Hosts/BulkActions/BulkRemovePuppetCAProxy';
14
14
 
15
+ const GLOBAL_FILL_PRIORITY = 100;
16
+
15
17
  // register reducers
16
18
  registerReducer('puppet', reducers);
17
19
  // add fills
@@ -40,35 +42,35 @@ addGlobalFill(
40
42
  'hosts-index-kebab',
41
43
  'puppet-hosts-index-kebab',
42
44
  <HostsIndexActionsBar key="puppet-hosts-index-kebab" />,
43
- 100
45
+ GLOBAL_FILL_PRIORITY
44
46
  );
45
47
 
46
48
  addGlobalFill(
47
49
  '_all-hosts-modals',
48
50
  'BulkChangePuppetProxy',
49
51
  <BulkChangePuppetProxy key="bulk-change-puppet-proxy" />,
50
- 100
52
+ GLOBAL_FILL_PRIORITY
51
53
  );
52
54
 
53
55
  addGlobalFill(
54
56
  '_all-hosts-modals',
55
57
  'BulkChangePuppetCAProxy',
56
58
  <BulkChangePuppetCAProxy key="bulk-change-puppet-ca-proxy" />,
57
- 100
59
+ GLOBAL_FILL_PRIORITY
58
60
  );
59
61
 
60
62
  addGlobalFill(
61
63
  '_all-hosts-modals',
62
64
  'BulkRemovePuppetCAProxy',
63
65
  <BulkRemovePuppetCAProxy key="bulk-remove-puppet-ca-proxy" />,
64
- 100
66
+ GLOBAL_FILL_PRIORITY
65
67
  );
66
68
 
67
69
  addGlobalFill(
68
70
  '_all-hosts-modals',
69
71
  'BulkRemovePuppetProxy',
70
72
  <BulkRemovePuppetProxy key="bulk-remove-puppet-proxy" />,
71
- 100
73
+ GLOBAL_FILL_PRIORITY
72
74
  );
73
75
 
74
76
  registerColumns(puppetHostsIndexColumns);
@@ -17,6 +17,8 @@
17
17
  import $ from 'jquery';
18
18
  import { sprintf, translate as __ } from 'foremanReact/common/I18n';
19
19
 
20
+ const HIGHLIGHT_DURATION = 5000;
21
+
20
22
  export function filterPuppetClasses(item) {
21
23
  const term = $(item)
22
24
  .val()
@@ -59,7 +61,7 @@ export function addPuppetClass(item) {
59
61
 
60
62
  $('#selected_classes').append(content);
61
63
 
62
- $(`#selected_puppetclass_${id}`).show('highlight', 5000);
64
+ $(`#selected_puppetclass_${id}`).show('highlight', HIGHLIGHT_DURATION);
63
65
  $(`#puppetclass_${id}`)
64
66
  .addClass('selected-marker')
65
67
  .hide();
@@ -87,7 +89,7 @@ function addGroupPuppetClass(item) {
87
89
 
88
90
  $('#selected_classes').append(content);
89
91
 
90
- $(`#selected_puppetclass_${id}`).show('highlight', 5000);
92
+ $(`#selected_puppetclass_${id}`).show('highlight', HIGHLIGHT_DURATION);
91
93
  $(`#puppetclass_${id}`)
92
94
  .addClass('selected-marker')
93
95
  .hide();
@@ -136,7 +138,7 @@ export function addConfigGroup(item) {
136
138
  content.append(
137
139
  `<input id='config_group_ids' name=${type}[config_group_ids][] type='hidden' value=${id}>`
138
140
  );
139
- $(`#selected_config_group_${id}`).show('highlight', 5000);
141
+ $(`#selected_config_group_${id}`).show('highlight', HIGHLIGHT_DURATION);
140
142
  $(`#config_group_${id}`)
141
143
  .addClass('selected-marker')
142
144
  .hide();
@@ -149,7 +151,7 @@ export function addConfigGroup(item) {
149
151
  link.text(__(' Remove'));
150
152
 
151
153
  $('#selected_config_groups').append(content);
152
- $(`#selected_config_group_${id}`).show('highlight', 5000);
154
+ $(`#selected_config_group_${id}`).show('highlight', HIGHLIGHT_DURATION);
153
155
  $(`#config_group_${id}`)
154
156
  .addClass('selected-marker')
155
157
  .hide();
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.1.2
4
+ version: 10.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
@@ -426,7 +426,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
426
426
  - !ruby/object:Gem::Version
427
427
  version: '0'
428
428
  requirements: []
429
- rubygems_version: 4.0.10
429
+ rubygems_version: 4.0.16
430
430
  specification_version: 4
431
431
  summary: Add Puppet features to Foreman
432
432
  test_files: