DEV: Apply prettier

This commit is contained in:
David Taylor 2018-10-22 19:49:33 +01:00
parent ea7cecc1c2
commit 3de29b70cf
3 changed files with 12 additions and 13 deletions

View File

@ -1,14 +1,12 @@
import property from 'ember-addons/ember-computed-decorators';
import Category from 'discourse/models/category';
import property from "ember-addons/ember-computed-decorators";
import Category from "discourse/models/category";
export default {
name: 'extend-category-for-solved',
before: 'inject-discourse-objects',
name: "extend-category-for-solved",
before: "inject-discourse-objects",
initialize() {
Category.reopen({
@property('custom_fields.enable_accepted_answers')
@property("custom_fields.enable_accepted_answers")
enable_accepted_answers: {
get(enableField) {
return enableField === "true";
@ -19,7 +17,6 @@ export default {
return value;
}
}
});
}
};

View File

@ -1,6 +1,6 @@
export default {
resource: 'user.userActivity',
resource: "user.userActivity",
map() {
this.route('solved');
this.route("solved");
}
};

View File

@ -1,4 +1,7 @@
.solved-panel, .post-controls .accepted, .fa.accepted, .accepted-text {
.solved-panel,
.post-controls .accepted,
.fa.accepted,
.accepted-text {
color: green;
}
@ -16,7 +19,7 @@
// you can style accepted answers however your want
.topic-post.accepted-answer .topic-body {
// background-color: #E9FFE0;
// background-color: #E9FFE0;
}
.mobile-view .solved-panel {
@ -24,7 +27,6 @@
}
.solved-panel {
.by {
display: none;
}