diff --git a/addons/core/translations/resources/en-us.yaml b/addons/core/translations/resources/en-us.yaml index a2d87fec2..538830480 100644 --- a/addons/core/translations/resources/en-us.yaml +++ b/addons/core/translations/resources/en-us.yaml @@ -524,6 +524,7 @@ target: title: Target title_plural: Targets description: A target is a logical collection of host sets which may be used to initiate sessions. + details: Target details messages: welcome: title: Welcome to Targets diff --git a/ui/desktop/app/styles/app.scss b/ui/desktop/app/styles/app.scss index 911120fe3..409f4682f 100644 --- a/ui/desktop/app/styles/app.scss +++ b/ui/desktop/app/styles/app.scss @@ -515,3 +515,22 @@ $chevron-down: url("data:image/svg+xml;utf-8,{{@model.id}} + +
+
+ {{t 'resources.target.details'}} +
+ + {{! Target name }} + + {{@model.name}} + + {{! Project name }} + + {{@model.project.displayName}} + + {{! Target description }} + {{#if @model.description}} + + {{@model.description}} + + {{/if}} + {{! Target type }} + + {{#if @model.isSSH}} + {{t 'resources.target.types.ssh'}} + {{else}} + {{t 'resources.target.types.tcp'}} + {{/if}} + + {{! Target ID }} + + + {{@model.id}} + + + +
+ diff --git a/ui/desktop/tests/acceptance/projects/targets-test.js b/ui/desktop/tests/acceptance/projects/targets-test.js index 643475d36..aa04ff91b 100644 --- a/ui/desktop/tests/acceptance/projects/targets-test.js +++ b/ui/desktop/tests/acceptance/projects/targets-test.js @@ -178,7 +178,7 @@ module('Acceptance | projects | targets', function (hooks) { assert.expect(1); await visit(urls.targets); await click('tbody tr td span a'); - assert.strictEqual(currentURL(), urls.sessions); + assert.strictEqual(currentURL(), urls.target); }); test('visiting empty targets', async function (assert) { diff --git a/ui/desktop/tests/acceptance/scopes-test.js b/ui/desktop/tests/acceptance/scopes-test.js index 3b2aa720f..02e13501f 100644 --- a/ui/desktop/tests/acceptance/scopes-test.js +++ b/ui/desktop/tests/acceptance/scopes-test.js @@ -231,7 +231,7 @@ module('Acceptance | scopes', function (hooks) { assert.expect(1); await visit(urls.targets); await click('tbody tr td span a'); - assert.strictEqual(currentURL(), urls.targetSessions); + assert.strictEqual(currentURL(), urls.target); }); test('visiting empty targets', async function (assert) {