mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: prettier 1.14.0
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
@@ -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}`
|
||||
});
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user