From 1102c94875b05546dc258a82d7de1393fa117881 Mon Sep 17 00:00:00 2001 From: Cameron Perera Date: Fri, 8 Sep 2023 17:34:35 -0500 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20move=20sidebar=20int?= =?UTF-8?q?o=20session=20details=20tab=20(#1892)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Closes: ICU-10961 --- .../app/components/session/tabs/index.hbs | 130 +++++++++++++++--- .../scope/projects/sessions/session.hbs | 86 +----------- 2 files changed, 112 insertions(+), 104 deletions(-) diff --git a/ui/desktop/app/components/session/tabs/index.hbs b/ui/desktop/app/components/session/tabs/index.hbs index 8b55303cb..f9f3713ee 100644 --- a/ui/desktop/app/components/session/tabs/index.hbs +++ b/ui/desktop/app/components/session/tabs/index.hbs @@ -1,29 +1,119 @@ +{{! + Copyright (c) HashiCorp, Inc. + SPDX-License-Identifier: MPL-2.0 +}} + {{t 'titles.details'}} {{t 'resources.session.shell'}} - {{#if (and @model.proxy_address @model.proxy_port)}} - - {{/if}} - {{#if @model.credentials}} - - {{else}} - - - - - {{/if}} + + + {{#if (and @model.proxy_address @model.proxy_port)}} + + {{/if}} + {{#if @model.credentials}} + + {{else}} + + + + + {{/if}} + + +
+ {{#if @model.host}} +
+
+ {{t 'resources.host.details'}} +
+ + {{! Host name }} + {{#if @model.host.name}} + + {{@model.host.name}} + + {{/if}} + {{! Host description }} + {{#if @model.host.description}} + + {{@model.host.description}} + + {{/if}} + {{! Host ID }} + + + {{@model.host.id}} + + + +
+ {{/if}} +
+
+ {{t 'resources.target.details'}} +
+ + {{! Target name }} + + {{@model.target.name}} + + {{! Project name }} + + {{@model.target.project.displayName}} + + {{! Target description }} + {{#if @model.target.description}} + + {{@model.target.description}} + + {{/if}} + {{! Target type }} + + {{#if @model.target.isSSH}} + {{t 'resources.target.types.ssh'}} + {{else}} + {{t 'resources.target.types.tcp'}} + {{/if}} + + {{! Target ID }} + + + {{@model.target.id}} + + + +
+
+
+
+
diff --git a/ui/desktop/app/templates/scopes/scope/projects/sessions/session.hbs b/ui/desktop/app/templates/scopes/scope/projects/sessions/session.hbs index f077c81b2..949943d37 100644 --- a/ui/desktop/app/templates/scopes/scope/projects/sessions/session.hbs +++ b/ui/desktop/app/templates/scopes/scope/projects/sessions/session.hbs @@ -2,6 +2,7 @@ Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0 }} + {{page-title @model.displayName}} @@ -25,90 +26,7 @@ - - - - - - -
- {{#if @model.host}} -
-
- {{t 'resources.host.details'}} -
- - {{! Host name }} - {{#if @model.host.name}} - - {{@model.host.name}} - - {{/if}} - {{! Host description }} - {{#if @model.host.description}} - - {{@model.host.description}} - - {{/if}} - {{! Host ID }} - - - {{@model.host.id}} - - - -
- {{/if}} -
-
- {{t 'resources.target.details'}} -
- - {{! Target name }} - - {{@model.target.name}} - - {{! Project name }} - - {{@model.target.project.displayName}} - - {{! Target description }} - {{#if @model.target.description}} - - {{@model.target.description}} - - {{/if}} - {{! Target type }} - - {{#if @model.target.isSSH}} - {{t 'resources.target.types.ssh'}} - {{else}} - {{t 'resources.target.types.tcp'}} - {{/if}} - - {{! Target ID }} - - - {{@model.target.id}} - - - -
-
-
-
+
\ No newline at end of file