From f4b3b4a2050b571efd42f3c6234f52744d65cb03 Mon Sep 17 00:00:00 2001 From: dharini Date: Mon, 18 Oct 2021 12:11:55 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20simplifying=20toolbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rose/addon/components/rose/toolbar/index.hbs | 5 +---- .../components/rose/toolbar/index.stories.mdx | 6 +----- .../integration/components/rose/toolbar-test.js | 14 -------------- 3 files changed, 2 insertions(+), 23 deletions(-) diff --git a/addons/rose/addon/components/rose/toolbar/index.hbs b/addons/rose/addon/components/rose/toolbar/index.hbs index 15977f7c9..084353050 100644 --- a/addons/rose/addon/components/rose/toolbar/index.hbs +++ b/addons/rose/addon/components/rose/toolbar/index.hbs @@ -1,6 +1,3 @@
- {{yield (hash - search=(component "rose/anonymous" class="rose-toolbar-search") - filter=(component "rose/anonymous" class="rose-toolbar-filter") - )}} + {{yield}}
\ No newline at end of file diff --git a/addons/rose/addon/components/rose/toolbar/index.stories.mdx b/addons/rose/addon/components/rose/toolbar/index.stories.mdx index bddb5a006..b086f11a4 100644 --- a/addons/rose/addon/components/rose/toolbar/index.stories.mdx +++ b/addons/rose/addon/components/rose/toolbar/index.stories.mdx @@ -9,9 +9,7 @@ import { action } from '@storybook/addon-actions'; A toolbar component that allows two distinct sections to be configured: search, filter ```htmlbars - - - + ``` @@ -19,8 +17,6 @@ A toolbar component that allows two distinct sections to be configured: search, {{ template: hbs` - Search - Filter `, }} diff --git a/addons/rose/tests/integration/components/rose/toolbar-test.js b/addons/rose/tests/integration/components/rose/toolbar-test.js index 5fd567fba..3a9166ef7 100644 --- a/addons/rose/tests/integration/components/rose/toolbar-test.js +++ b/addons/rose/tests/integration/components/rose/toolbar-test.js @@ -16,18 +16,4 @@ module('Integration | Component | rose/toolbar', function (hooks) { await render(hbs``); assert.ok(find('#toolbar')); }); - - test('it renders with filter', async function (assert) { - await render(hbs` - - `); - assert.ok(find('.rose-toolbar-filter')); - }); - - test('it renders with search', async function (assert) { - await render(hbs` - - `); - assert.ok(find('.rose-toolbar-search')); - }); });