Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
Remove positional params for component feedback-panel
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuget committed Apr 11, 2017
1 parent b7466cb commit 87aaec7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
10 changes: 2 additions & 8 deletions live/app/components/feedback-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ const FORM_CLOSED = 'FORM_CLOSED';
const FORM_OPENED= 'FORM_OPENED';
const FORM_SUBMITTED = 'FORM_SUBMITTED';

const FeedbackPanel = Ember.Component.extend({
export default Ember.Component.extend({

store: Ember.inject.service(),

answer: null,
email: '',
content: '',
error: null,
Expand Down Expand Up @@ -50,11 +51,4 @@ const FeedbackPanel = Ember.Component.extend({
this.set('status', FORM_CLOSED);
}
}

});

FeedbackPanel.reopenClass({
positionalParams: ['answer']
});

export default FeedbackPanel;
4 changes: 2 additions & 2 deletions live/app/templates/components/comparison-window.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
{{#if isAssessmentChallengeTypeQcu}}
{{qcu-solution-panel challenge=challenge answer=answer solution=solution}}
{{/if}}

{{#if isAssessmentChallengeTypeQroc}}
<div class="comparison-window__corrected-answers comparison-window__corrected-answers--qroc">
{{qroc-solution-panel answer=answer solution=solution }}
Expand All @@ -69,7 +69,7 @@

<div class="routable-modal--footer">
<div class="comparison-window__feedback-panel">
{{feedback-panel answer}}
{{feedback-panel answer=answer}}
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion live/tests/integration/components/feedback-panel-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function expectMercixViewToBeVisible(component) {
expect(component.$(MERCIX_VIEW)).to.have.length(1);
}

describe('Integration | Component | feedback-panel', function () {
describe.only('Integration | Component | feedback-panel', function () {

setupComponentTest('feedback-panel', {
integration: true
Expand Down

0 comments on commit 87aaec7

Please sign in to comment.