diff --git a/webpack/global_index.js b/webpack/global_index.js
index 51e88141..4cdee167 100644
--- a/webpack/global_index.js
+++ b/webpack/global_index.js
@@ -12,6 +12,8 @@ import BulkChangePuppetCAProxy from './src/Extends/Hosts/BulkActions/BulkChangeP
import BulkRemovePuppetProxy from './src/Extends/Hosts/BulkActions/BulkRemovePuppetProxy';
import BulkRemovePuppetCAProxy from './src/Extends/Hosts/BulkActions/BulkRemovePuppetCAProxy';
+const GLOBAL_FILL_PRIORITY = 100;
+
// register reducers
registerReducer('puppet', reducers);
// add fills
@@ -40,35 +42,35 @@ addGlobalFill(
'hosts-index-kebab',
'puppet-hosts-index-kebab',
,
- 100
+ GLOBAL_FILL_PRIORITY
);
addGlobalFill(
'_all-hosts-modals',
'BulkChangePuppetProxy',
,
- 100
+ GLOBAL_FILL_PRIORITY
);
addGlobalFill(
'_all-hosts-modals',
'BulkChangePuppetCAProxy',
,
- 100
+ GLOBAL_FILL_PRIORITY
);
addGlobalFill(
'_all-hosts-modals',
'BulkRemovePuppetCAProxy',
,
- 100
+ GLOBAL_FILL_PRIORITY
);
addGlobalFill(
'_all-hosts-modals',
'BulkRemovePuppetProxy',
,
- 100
+ GLOBAL_FILL_PRIORITY
);
registerColumns(puppetHostsIndexColumns);
diff --git a/webpack/src/foreman_class_edit.js b/webpack/src/foreman_class_edit.js
index c39d9c5e..7133b712 100644
--- a/webpack/src/foreman_class_edit.js
+++ b/webpack/src/foreman_class_edit.js
@@ -17,6 +17,8 @@
import $ from 'jquery';
import { sprintf, translate as __ } from 'foremanReact/common/I18n';
+const HIGHLIGHT_DURATION = 5000;
+
export function filterPuppetClasses(item) {
const term = $(item)
.val()
@@ -59,7 +61,7 @@ export function addPuppetClass(item) {
$('#selected_classes').append(content);
- $(`#selected_puppetclass_${id}`).show('highlight', 5000);
+ $(`#selected_puppetclass_${id}`).show('highlight', HIGHLIGHT_DURATION);
$(`#puppetclass_${id}`)
.addClass('selected-marker')
.hide();
@@ -87,7 +89,7 @@ function addGroupPuppetClass(item) {
$('#selected_classes').append(content);
- $(`#selected_puppetclass_${id}`).show('highlight', 5000);
+ $(`#selected_puppetclass_${id}`).show('highlight', HIGHLIGHT_DURATION);
$(`#puppetclass_${id}`)
.addClass('selected-marker')
.hide();
@@ -136,7 +138,7 @@ export function addConfigGroup(item) {
content.append(
``
);
- $(`#selected_config_group_${id}`).show('highlight', 5000);
+ $(`#selected_config_group_${id}`).show('highlight', HIGHLIGHT_DURATION);
$(`#config_group_${id}`)
.addClass('selected-marker')
.hide();
@@ -149,7 +151,7 @@ export function addConfigGroup(item) {
link.text(__(' Remove'));
$('#selected_config_groups').append(content);
- $(`#selected_config_group_${id}`).show('highlight', 5000);
+ $(`#selected_config_group_${id}`).show('highlight', HIGHLIGHT_DURATION);
$(`#config_group_${id}`)
.addClass('selected-marker')
.hide();