From 5a9cbdd913b3909c8b468bd11da2f1ec2b01a325 Mon Sep 17 00:00:00 2001 From: Lisbet Alvarez <107949262+lisbet-alvarez@users.noreply.github.com> Date: Mon, 22 Jan 2024 14:07:11 -0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20change=20filter=20na?= =?UTF-8?q?me=20(#2102)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/core/translations/resources/en-us.yaml | 4 ++++ .../controllers/scopes/scope/projects/targets/index.js | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/addons/core/translations/resources/en-us.yaml b/addons/core/translations/resources/en-us.yaml index 4c3f84961..ff2a7b912 100644 --- a/addons/core/translations/resources/en-us.yaml +++ b/addons/core/translations/resources/en-us.yaml @@ -590,6 +590,10 @@ target: help: tcp: Generic TCP supports a broad range of connection types. ssh: Protocol-aware SSH with support for credential injection. + filter: + active-sessions: + yes: Has active sessions + no: No active sessions form: type: label: Type diff --git a/ui/desktop/app/controllers/scopes/scope/projects/targets/index.js b/ui/desktop/app/controllers/scopes/scope/projects/targets/index.js index 6764f6c96..5bbe21f1c 100644 --- a/ui/desktop/app/controllers/scopes/scope/projects/targets/index.js +++ b/ui/desktop/app/controllers/scopes/scope/projects/targets/index.js @@ -96,8 +96,14 @@ export default class ScopesScopeProjectsTargetsIndexController extends Controlle get availableSessionOptions() { return [ - { id: 'yes', name: this.intl.t('actions.yes') }, - { id: 'no', name: this.intl.t('actions.no') }, + { + id: 'yes', + name: this.intl.t('resources.target.filter.active-sessions.yes'), + }, + { + id: 'no', + name: this.intl.t('resources.target.filter.active-sessions.no'), + }, ]; }