DEV: prettier 1.14.0

This commit is contained in:
Joffrey JAFFEUX
2018-07-30 11:09:08 -04:00
committed by GitHub
parent 17b851cf08
commit 1f899bec21
19 changed files with 60 additions and 32 deletions

View File

@@ -1,5 +1,6 @@
import computed from "ember-addons/ember-computed-decorators";
export default Ember.Component.extend({
@computed("field.value") showStaffCount: staffCount => staffCount > 1
@computed("field.value")
showStaffCount: staffCount => staffCount > 1
});

View File

@@ -3,5 +3,6 @@ import computed from "ember-addons/ember-computed-decorators";
export default Ember.Component.extend({
classNameBindings: [":wizard-step-form", "customStepClass"],
@computed("step.id") customStepClass: stepId => `wizard-step-${stepId}`
@computed("step.id")
customStepClass: stepId => `wizard-step-${stepId}`
});

View File

@@ -31,7 +31,8 @@ export default Ember.Component.extend({
this.autoFocus();
},
@computed("step.index") showQuitButton: index => index === 0,
@computed("step.index")
showQuitButton: index => index === 0,
@computed("step.displayIndex", "wizard.totalSteps")
showNextButton: (current, total) => current < total,
@@ -39,7 +40,8 @@ export default Ember.Component.extend({
@computed("step.displayIndex", "wizard.totalSteps")
showDoneButton: (current, total) => current === total,
@computed("step.index") showBackButton: index => index > 0,
@computed("step.index")
showBackButton: index => index > 0,
@computed("step.banner")
bannerImage(src) {

View File

@@ -15,11 +15,14 @@ export default {
this.set("_validState", States.UNCHECKED);
},
@computed("_validState") valid: state => state === States.VALID,
@computed("_validState")
valid: state => state === States.VALID,
@computed("_validState") invalid: state => state === States.INVALID,
@computed("_validState")
invalid: state => state === States.INVALID,
@computed("_validState") unchecked: state => state === States.UNCHECKED,
@computed("_validState")
unchecked: state => state === States.UNCHECKED,
setValid(valid, description) {
this.set("_validState", valid ? States.VALID : States.INVALID);

View File

@@ -5,7 +5,8 @@ import { ajax } from "wizard/lib/ajax";
export default Ember.Object.extend(ValidState, {
id: null,
@computed("index") displayIndex: index => index + 1,
@computed("index")
displayIndex: index => index + 1,
@computed("fields.[]")
fieldsById(fields) {

View File

@@ -4,7 +4,8 @@ import { ajax } from "wizard/lib/ajax";
import computed from "ember-addons/ember-computed-decorators";
const Wizard = Ember.Object.extend({
@computed("steps.length") totalSteps: length => length,
@computed("steps.length")
totalSteps: length => length,
getTitle() {
const titleStep = this.get("steps").findBy("id", "forum-title");