chore: 🤖 use named blocks instead of contextual components

This commit is contained in:
Randall Morey committed 2021-06-14 17:02:17 -04:00
1 parent 5e591ce5bb
commit 242c3f6370
2 files changed
+17 -14

No files matched your search

@@ -6,10 +6,15 @@
@modal={{true}}
as |dialog|
>
{{yield (hash notification=(component 'rose/notification'))}}
{{#if @notification}}
<Rose::Notification
@style={{@notificationStyle}}
@heading={{@notification}}
/>
{{/if}}
<dialog.body>
{{yield (hash body=(component 'rose/anonymous'))}}
{{yield to='body'}}
{{!--
<Rose::Separator />
<h3>Credentials</h3>
@@ -104,6 +109,6 @@
</div>--}}
</dialog.body>
<dialog.footer>
{{yield (hash footer=(component 'rose/anonymous'))}}
{{yield to='footer'}}
</dialog.footer>
</Rose::Dialog>
@@ -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|
>
<dialog.notification
@style='success'
@heading={{t 'resources.target.messages.connection-success.title'}}
/>
<dialog.body>
<:body>
<h3>{{t 'resources.target.messages.proxy_url.title'}}
(<code>{{t 'resources.target.types.tcp'}}</code>)</h3>
<Copyable
@text={{concat session.proxy_address ':' session.proxy_port}}
@text={{session.proxy}}
@buttonText={{t 'actions.copy-to-clipboard'}}
@acknowledgeText={{t 'states.copied'}}
>
@@ -34,8 +32,8 @@
<h3>Credentials</h3> }}
</dialog.body>
<dialog.footer>
</:body>
<:footer>
<div>
<Rose::Button
@style='secondary'
@@ -53,7 +51,7 @@
</Rose::LinkButton> }}
</div>
</dialog.footer>
</:footer>
</DialogDetail>
{{/unless}}
{{/if}}