From a9dd79a5bef3dba3732f2782df83fa160ca38f36 Mon Sep 17 00:00:00 2001 From: Zafir Sk Heerah Date: Tue, 16 Jul 2024 22:32:57 +0400 Subject: [PATCH] Remove code --- app/components/input-modal.hbs | 15 +-------- app/components/input-modal.ts | 32 +------------------ .../components/open-modal-button-test.ts | 3 +- 3 files changed, 3 insertions(+), 47 deletions(-) diff --git a/app/components/input-modal.hbs b/app/components/input-modal.hbs index c5d22ba..acf9fb2 100644 --- a/app/components/input-modal.hbs +++ b/app/components/input-modal.hbs @@ -1,15 +1,2 @@ {{!-- app/components/input-modal.hbs --}} -
- -
+{{!-- Write template here --}} diff --git a/app/components/input-modal.ts b/app/components/input-modal.ts index 08a8a2e..514c8a0 100644 --- a/app/components/input-modal.ts +++ b/app/components/input-modal.ts @@ -8,35 +8,5 @@ interface InputModalArgs { } export default class InputModalComponent extends Component { - @tracked firstName = ''; - @tracked lastName = ''; - @tracked email = ''; - - @action - updateFirstName(event: Event) { - this.firstName = (event.target as HTMLInputElement).value; - } - - @action - updateLastName(event: Event) { - this.lastName = (event.target as HTMLInputElement).value; - } - - @action - updateEmail(event: Event) { - this.email = (event.target as HTMLInputElement).value; - } - - @action - closeModal() { - if (this.args.closeModal) { - this.args.closeModal(); - } - } - - @action - save() { - alert('Data saved successfully!'); - this.closeModal(); - } + // Write controller here } diff --git a/tests/integration/components/open-modal-button-test.ts b/tests/integration/components/open-modal-button-test.ts index 682c64a..8ebe2a6 100644 --- a/tests/integration/components/open-modal-button-test.ts +++ b/tests/integration/components/open-modal-button-test.ts @@ -8,8 +8,7 @@ module('Integration | Component | open-modal-button', function (hooks) { setupRenderingTest(hooks); test('it renders the open modal button', async function (assert) { - await render(hbs``); - assert.dom('button').hasText('Open Modal'); + // Write the test here }); test('it opens the modal when the button is clicked', async function (assert) {