From 242c3f6370e7ff58670da8d5488c346d550e5e48 Mon Sep 17 00:00:00 2001 From: Randall Morey Date: Mon, 14 Jun 2021 17:02:17 -0400 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20use=20named=20blocks=20?= =?UTF-8?q?instead=20of=20contextual=20components?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/components/dialog-detail/index.hbs | 11 +++++++--- .../scopes/scope/projects/targets.hbs | 20 +++++++++---------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/ui/desktop/app/components/dialog-detail/index.hbs b/ui/desktop/app/components/dialog-detail/index.hbs index 8900cefcb..68a026256 100644 --- a/ui/desktop/app/components/dialog-detail/index.hbs +++ b/ui/desktop/app/components/dialog-detail/index.hbs @@ -6,10 +6,15 @@ @modal={{true}} as |dialog| > - {{yield (hash notification=(component 'rose/notification'))}} + {{#if @notification}} + + {{/if}} - {{yield (hash body=(component 'rose/anonymous'))}} + {{yield to='body'}} {{!--

Credentials

@@ -104,6 +109,6 @@ --}}
- {{yield (hash footer=(component 'rose/anonymous'))}} + {{yield to='footer'}} \ No newline at end of file diff --git a/ui/desktop/app/templates/scopes/scope/projects/targets.hbs b/ui/desktop/app/templates/scopes/scope/projects/targets.hbs index bb75c19ab..3fee051d6 100644 --- a/ui/desktop/app/templates/scopes/scope/projects/targets.hbs +++ b/ui/desktop/app/templates/scopes/scope/projects/targets.hbs @@ -10,20 +10,18 @@ ': ' target.id }} + @notificationStyle='success' + @notification={{t + 'resources.target.messages.connection-success.title' + }} @dismiss={{route-action 'acknowledge' session}} @dismissButtonText={{t 'actions.ok'}} - as |dialog| > - - - + <:body>

{{t 'resources.target.messages.proxy_url.title'}} ({{t 'resources.target.types.tcp'}})

@@ -34,8 +32,8 @@

Credentials

}} -
- + + <:footer>
}}
-
+ {{/unless}} {{/if}}