diff --git a/app/assets/javascripts/pages/admin/application_settings/metrics_and_profiling/usage_statistics.js b/app/assets/javascripts/pages/admin/application_settings/metrics_and_profiling/usage_statistics.js index 9ccb6381a3f0e336bcd6b4a608470274899a28e3..bf27b1a81ff9fce6d1b0ed9c8f3c37350c87ed66 100644 --- a/app/assets/javascripts/pages/admin/application_settings/metrics_and_profiling/usage_statistics.js +++ b/app/assets/javascripts/pages/admin/application_settings/metrics_and_profiling/usage_statistics.js @@ -1,10 +1,10 @@ import { __ } from '~/locale'; -export const HELPER_TEXT_USAGE_PING_DISABLED = __( +export const HELPER_TEXT_SERVICE_PING_DISABLED = __( 'To enable Registration Features, make sure "Enable service ping" is checked.', ); -export const HELPER_TEXT_USAGE_PING_ENABLED = __( +export const HELPER_TEXT_SERVICE_PING_ENABLED = __( 'You can enable Registration Features because Service Ping is enabled. To continue using Registration Features in the future, you will also need to register with GitLab via a new cloud licensing service.', ); @@ -18,8 +18,8 @@ function setHelperText(usagePingCheckbox) { ); helperTextId.textContent = usagePingCheckbox.checked - ? HELPER_TEXT_USAGE_PING_ENABLED - : HELPER_TEXT_USAGE_PING_DISABLED; + ? HELPER_TEXT_SERVICE_PING_ENABLED + : HELPER_TEXT_SERVICE_PING_DISABLED; usagePingFeaturesLabel.classList.toggle('gl-cursor-not-allowed', !usagePingCheckbox.checked); diff --git a/spec/frontend/pages/admin/application_settings/metrics_and_profiling/usage_statistics_spec.js b/spec/frontend/pages/admin/application_settings/metrics_and_profiling/usage_statistics_spec.js index 48e51f09c096b77dc9cc50bdd643a1789728b8d5..858c7b76ac8615693b5e2b77c29924fe6835ea94 100644 --- a/spec/frontend/pages/admin/application_settings/metrics_and_profiling/usage_statistics_spec.js +++ b/spec/frontend/pages/admin/application_settings/metrics_and_profiling/usage_statistics_spec.js @@ -1,6 +1,6 @@ import initSetHelperText, { - HELPER_TEXT_USAGE_PING_DISABLED, - HELPER_TEXT_USAGE_PING_ENABLED, + HELPER_TEXT_SERVICE_PING_DISABLED, + HELPER_TEXT_SERVICE_PING_ENABLED, } from '~/pages/admin/application_settings/metrics_and_profiling/usage_statistics'; describe('UsageStatistics', () => { @@ -23,12 +23,12 @@ describe('UsageStatistics', () => { const expectEnabledUsagePingFeaturesCheckBox = () => { expect(usagePingFeaturesCheckBox.classList.contains('gl-cursor-not-allowed')).toBe(false); - expect(usagePingFeaturesHelperText.textContent).toEqual(HELPER_TEXT_USAGE_PING_ENABLED); + expect(usagePingFeaturesHelperText.textContent).toEqual(HELPER_TEXT_SERVICE_PING_ENABLED); }; const expectDisabledUsagePingFeaturesCheckBox = () => { expect(usagePingFeaturesLabel.classList.contains('gl-cursor-not-allowed')).toBe(true); - expect(usagePingFeaturesHelperText.textContent).toEqual(HELPER_TEXT_USAGE_PING_DISABLED); + expect(usagePingFeaturesHelperText.textContent).toEqual(HELPER_TEXT_SERVICE_PING_DISABLED); }; describe('Registration Features checkbox', () => {