Code coverage report for src/components/task-step/step-footer.cjsx

Statements: 100% (19 / 19)      Branches: 50% (1 / 2)      Functions: 100% (3 / 3)      Lines: 100% (19 / 19)      Ignored: none     

All files » src/components/task-step/ » step-footer.cjsx
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50                                 415× 415× 415× 415×       415× 415× 415×                        
var BS, CardBody, React, StepFooter, StepFooterMixin, StepPanel, TaskStepStore, TaskStore, _;
 
React = require('react');
 
BS = require('react-bootstrap');
 
_ = require('underscore');
 
StepPanel = require('../../helpers/policies').StepPanel;
 
CardBody = require('openstax-react-components').CardBody;
 
TaskStore = require('../../flux/task').TaskStore;
 
StepFooterMixin = require('./step-footer-mixin');
 
TaskStepStore = require('../../flux/task-step').TaskStepStore;
 
StepFooter = React.createClass({
  displayName: 'StepFooter',
  mixins: [StepFooterMixin],
  getDefaultProps: function() {
    return {
      controlButtons: null
    };
  },
  renderFooterButtons: function() {
    var controlButtons, panel, ref;
    ref = this.props, controlButtons = ref.controlButtons, panel = ref.panel;
    Eif (panel !== 'teacher-read-only') {
      return controlButtons;
    }
  },
  render: function() {
    var courseId, id, pinned, ref, review, taskId;
    ref = this.props, pinned = ref.pinned, courseId = ref.courseId, id = ref.id, taskId = ref.taskId, review = ref.review;
    return React.createElement("div", {
      "className": '-step-footer'
    }, this.renderFooter({
      stepId: id,
      taskId: taskId,
      courseId: courseId,
      review: review
    }));
  }
});
 
module.exports = StepFooter;