From a1e35cdc993b89ea07cb59567381b44f8b817d25 Mon Sep 17 00:00:00 2001 From: Dharini Jeeva Date: Fri, 11 Nov 2022 17:15:52 -0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20badge=20migration=20in?= =?UTF-8?q?=20desktop=20(#1438)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: 🤖 badge migration in desktop --- .../scopes/scope/projects/sessions/index.hbs | 2 +- .../scopes/scope/projects/targets/index.hbs | 18 +++++++++--------- .../scopes/scope/projects/targets/target.hbs | 4 +--- .../scope/projects/targets/target/-header.hbs | 4 +--- .../scope/projects/targets/target/hosts.hbs | 4 +--- .../scope/projects/targets/target/sessions.hbs | 2 +- .../projects/targets/sessions-test.js | 6 +++--- 7 files changed, 17 insertions(+), 23 deletions(-) diff --git a/ui/desktop/app/templates/scopes/scope/projects/sessions/index.hbs b/ui/desktop/app/templates/scopes/scope/projects/sessions/index.hbs index b17232c46..cb4d10adb 100644 --- a/ui/desktop/app/templates/scopes/scope/projects/sessions/index.hbs +++ b/ui/desktop/app/templates/scopes/scope/projects/sessions/index.hbs @@ -169,7 +169,7 @@ - {{model.status}} + {{#if model.isCancelable}} diff --git a/ui/desktop/app/templates/scopes/scope/projects/targets/index.hbs b/ui/desktop/app/templates/scopes/scope/projects/targets/index.hbs index ec6f0b4a9..226f56998 100644 --- a/ui/desktop/app/templates/scopes/scope/projects/targets/index.hbs +++ b/ui/desktop/app/templates/scopes/scope/projects/targets/index.hbs @@ -120,9 +120,11 @@

{{model.target.description}}

{{/if}} {{#if model.target.isActive}} - - {{t 'states.active'}} - + {{/if}} @@ -136,9 +138,9 @@ {{#if model.type}} - - {{t (concat 'resources.target.types.' model.type)}} - + {{/if}} @@ -151,9 +153,7 @@ {{model.project.id}} - - {{model.project.name}} - + {{#if (can 'connect target' model)}} diff --git a/ui/desktop/app/templates/scopes/scope/projects/targets/target.hbs b/ui/desktop/app/templates/scopes/scope/projects/targets/target.hbs index a376afe0c..468d26ab7 100644 --- a/ui/desktop/app/templates/scopes/scope/projects/targets/target.hbs +++ b/ui/desktop/app/templates/scopes/scope/projects/targets/target.hbs @@ -7,9 +7,7 @@ {{@model.displayName}} {{#if @model.isActive}}   - - {{t 'states.active'}} - + {{/if}}

{{@model.description}}

diff --git a/ui/desktop/app/templates/scopes/scope/projects/targets/target/-header.hbs b/ui/desktop/app/templates/scopes/scope/projects/targets/target/-header.hbs index a2a93c449..8563d9b75 100644 --- a/ui/desktop/app/templates/scopes/scope/projects/targets/target/-header.hbs +++ b/ui/desktop/app/templates/scopes/scope/projects/targets/target/-header.hbs @@ -2,9 +2,7 @@ {{@model.displayName}} {{#if @model.isActive}}   - - {{t 'states.active'}} - + {{/if}}

{{@model.description}}

diff --git a/ui/desktop/app/templates/scopes/scope/projects/targets/target/hosts.hbs b/ui/desktop/app/templates/scopes/scope/projects/targets/target/hosts.hbs index 25a209b09..56ee4d216 100644 --- a/ui/desktop/app/templates/scopes/scope/projects/targets/target/hosts.hbs +++ b/ui/desktop/app/templates/scopes/scope/projects/targets/target/hosts.hbs @@ -30,9 +30,7 @@ {{#if host.isStatic}} {{host.address}} {{else}} - - {{t 'resources.host-catalog.types.dynamic'}} - + {{/if}}
diff --git a/ui/desktop/app/templates/scopes/scope/projects/targets/target/sessions.hbs b/ui/desktop/app/templates/scopes/scope/projects/targets/target/sessions.hbs index 7af008e16..1b1e44db7 100644 --- a/ui/desktop/app/templates/scopes/scope/projects/targets/target/sessions.hbs +++ b/ui/desktop/app/templates/scopes/scope/projects/targets/target/sessions.hbs @@ -27,7 +27,7 @@ > {{session.id}} - {{session.status}} + diff --git a/ui/desktop/tests/acceptance/projects/targets/sessions-test.js b/ui/desktop/tests/acceptance/projects/targets/sessions-test.js index 6848419a7..8eb5d65a9 100644 --- a/ui/desktop/tests/acceptance/projects/targets/sessions-test.js +++ b/ui/desktop/tests/acceptance/projects/targets/sessions-test.js @@ -211,7 +211,7 @@ module('Acceptance | projects | targets | sessions', function (hooks) { assert.expect(1); later(async () => { run.cancelTimers(); - assert.ok(find('.rose-layout-page-header .rose-badge-success')); + assert.ok(find('.rose-layout-page-header .hds-badge--color-success')); }, 750); await visit(urls.sessions); }); @@ -221,7 +221,7 @@ module('Acceptance | projects | targets | sessions', function (hooks) { instances.session.update({ status: 'pending' }); later(async () => { run.cancelTimers(); - assert.ok(find('.rose-layout-page-header .rose-badge-success')); + assert.ok(find('.rose-layout-page-header .hds-badge--color-success')); }, 750); await visit(urls.sessions); }); @@ -231,7 +231,7 @@ module('Acceptance | projects | targets | sessions', function (hooks) { instances.session.update({ status: 'terminated' }); later(async () => { run.cancelTimers(); - assert.notOk(find('.rose-layout-page-header .rose-badge-success')); + assert.notOk(find('.rose-layout-page-header .hds-badge--color-success')); }, 750); await visit(urls.sessions); });