diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
commit | db384e6b19af03b4c3c82a5760d83a3fd79f7982 (patch) | |
tree | 34beaef37df5f47ccbcf5729d7583aae093cffa0 /app/assets/javascripts/ci/runner/components/search_tokens/status_token_config.js | |
parent | 54fd7b1bad233e3944434da91d257fa7f63c3996 (diff) |
Add latest changes from gitlab-org/gitlab@16-3-stable-eev16.3.0-rc42
Diffstat (limited to 'app/assets/javascripts/ci/runner/components/search_tokens/status_token_config.js')
-rw-r--r-- | app/assets/javascripts/ci/runner/components/search_tokens/status_token_config.js | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/app/assets/javascripts/ci/runner/components/search_tokens/status_token_config.js b/app/assets/javascripts/ci/runner/components/search_tokens/status_token_config.js index 4bc32909777..1e4774bff72 100644 --- a/app/assets/javascripts/ci/runner/components/search_tokens/status_token_config.js +++ b/app/assets/javascripts/ci/runner/components/search_tokens/status_token_config.js @@ -15,28 +15,17 @@ import { PARAM_KEY_STATUS, } from '../../constants'; -const options = [ - { value: STATUS_ONLINE, title: I18N_STATUS_ONLINE }, - { value: STATUS_OFFLINE, title: I18N_STATUS_OFFLINE }, - { value: STATUS_NEVER_CONTACTED, title: I18N_STATUS_NEVER_CONTACTED }, - { value: STATUS_STALE, title: I18N_STATUS_STALE }, -]; - export const statusTokenConfig = { icon: 'status', title: TOKEN_TITLE_STATUS, type: PARAM_KEY_STATUS, token: BaseToken, unique: true, - options: options.map(({ value, title }) => ({ - value, - // Replace whitespace with a special character to avoid - // splitting this value. - // Replacing in each option, as translations may also - // contain spaces! - // see: https://gitlab.com/gitlab-org/gitlab/-/issues/344142 - // see: https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1438 - title: title.replace(/\s/g, '\u00a0'), - })), + options: [ + { value: STATUS_ONLINE, title: I18N_STATUS_ONLINE }, + { value: STATUS_OFFLINE, title: I18N_STATUS_OFFLINE }, + { value: STATUS_NEVER_CONTACTED, title: I18N_STATUS_NEVER_CONTACTED }, + { value: STATUS_STALE, title: I18N_STATUS_STALE }, + ], operators: OPERATORS_IS, }; |