Apply changes requested on PR
This commit is contained in:
1 parent
6a5a27348b
commit
9f4e521534
7 files changed
+50
-8
No files matched your search
@@ -0,0 +1,3 @@
|
||||
<div class='layout-sidebar-body'>
|
||||
{{yield}}
|
||||
</div>
|
||||
@@ -1,8 +1,8 @@
|
||||
<div ...attributes class='layout-sidebar'>
|
||||
{{yield
|
||||
(hash
|
||||
body=(component 'rose/anonymous' class='layout-sidebar-body')
|
||||
sidebar=(component 'rose/anonymous' class='layout-sidebar-sidebar')
|
||||
Body=(component 'layout/sidebar/body')
|
||||
Sidebar=(component 'layout/sidebar/sidebar')
|
||||
)
|
||||
}}
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div class='layout-sidebar-sidebar'>
|
||||
{{yield}}
|
||||
</div>
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
<page.body>
|
||||
<Layout::Sidebar as |sb|>
|
||||
<sb.body>
|
||||
<sb.Body>
|
||||
<p>
|
||||
{{t 'resources.session-recording.title'}}
|
||||
{{@model.session_recording_id}}
|
||||
@@ -22,11 +22,11 @@
|
||||
>
|
||||
{{@model.channel_connection_id}}
|
||||
</LinkTo>
|
||||
</sb.body>
|
||||
</sb.Body>
|
||||
|
||||
<sb.sidebar>
|
||||
<sb.Sidebar>
|
||||
<p>{{t 'actions.help'}}</p>
|
||||
</sb.sidebar>
|
||||
</sb.Sidebar>
|
||||
</Layout::Sidebar>
|
||||
</page.body>
|
||||
</Rose::Layout::Page>
|
||||
@@ -9,8 +9,8 @@ module('Integration | Component | layout/sidebar', function (hooks) {
|
||||
test('it renders', async function (assert) {
|
||||
await render(hbs`
|
||||
<Layout::Sidebar as |sb|>
|
||||
<sb.body>Body content</sb.body>
|
||||
<sb.sidebar>Sidebar content</sb.sidebar>
|
||||
<sb.Body>Body content</sb.Body>
|
||||
<sb.Sidebar>Sidebar content</sb.Sidebar>
|
||||
</Layout::Sidebar>
|
||||
`);
|
||||
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import { module, test } from 'qunit';
|
||||
import { setupRenderingTest } from 'admin/tests/helpers';
|
||||
import { render } from '@ember/test-helpers';
|
||||
import { hbs } from 'ember-cli-htmlbars';
|
||||
|
||||
module('Integration | Component | layout/sidebar/body', function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
test('it renders', async function (assert) {
|
||||
await render(hbs`
|
||||
<Layout::Sidebar::Body>
|
||||
template block text
|
||||
</Layout::Sidebar::Body>
|
||||
`);
|
||||
|
||||
assert.dom(this.element).hasText('template block text');
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,18 @@
|
||||
import { module, test } from 'qunit';
|
||||
import { setupRenderingTest } from 'admin/tests/helpers';
|
||||
import { render } from '@ember/test-helpers';
|
||||
import { hbs } from 'ember-cli-htmlbars';
|
||||
|
||||
module('Integration | Component | layout/sidebar/sidebar', function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
test('it renders', async function (assert) {
|
||||
await render(hbs`
|
||||
<Layout::Sidebar::Sidebar>
|
||||
template block text
|
||||
</Layout::Sidebar::Sidebar>
|
||||
`);
|
||||
|
||||
assert.dom(this.element).hasText('template block text');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user