27 lines
742 B
JavaScript
27 lines
742 B
JavaScript
import Ember from 'ember';
|
|
import StepControl from 'flaredown/mixins/step-control';
|
|
|
|
const {
|
|
computed: {
|
|
alias,
|
|
equal,
|
|
},
|
|
} = Ember;
|
|
|
|
export default Ember.Component.extend(StepControl, {
|
|
classNames: ['checkin-summary'],
|
|
routeAfterCompleted: 'chart',
|
|
|
|
checkin: alias('model.checkin'),
|
|
stepName: alias('step.stepName'),
|
|
|
|
isStart: equal('stepName', 'start'),
|
|
isSummary: equal('stepName', 'summary'),
|
|
isSymptoms: equal('stepName', 'symptoms'),
|
|
isConditions: equal('stepName', 'conditions'),
|
|
isTreatments: equal('stepName', 'treatments'),
|
|
isHeathFactors: equal('stepName', 'health_factors'),
|
|
isHarveyBradshawIndex: equal('stepName', 'harvey_bradshaw'),
|
|
isPromotionRate: equal('stepName', 'promotion_rate'),
|
|
});
|