mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix Prettier using correct version (1.19.1)
This commit is contained in:
@@ -34,7 +34,10 @@ export default MultiSelectComponent.extend({
|
||||
},
|
||||
|
||||
mutateValues(values) {
|
||||
this.set("categories", values.map(v => Category.findById(v)));
|
||||
this.set(
|
||||
"categories",
|
||||
values.map(v => Category.findById(v))
|
||||
);
|
||||
},
|
||||
|
||||
filterComputedContent(computedContent, computedValues, filter) {
|
||||
|
||||
@@ -132,7 +132,7 @@ export default DropdownSelectBoxComponent.extend({
|
||||
(action !== REPLY && _topicSnapshot) ||
|
||||
(action === REPLY &&
|
||||
_topicSnapshot &&
|
||||
(options.userAvatar && options.userLink && options.topicLink))
|
||||
options.userAvatar && options.userLink && options.topicLink)
|
||||
) {
|
||||
items.push({
|
||||
name: I18n.t("composer.composer_actions.reply_to_topic.label"),
|
||||
|
||||
@@ -54,7 +54,10 @@ export default MultiSelectComponent.extend(TagsMixin, {
|
||||
},
|
||||
|
||||
mutateValues(values) {
|
||||
this.set("tags", values.filter(v => v));
|
||||
this.set(
|
||||
"tags",
|
||||
values.filter(v => v)
|
||||
);
|
||||
},
|
||||
|
||||
@discourseComputed("tags")
|
||||
|
||||
@@ -27,7 +27,10 @@ export default MultiSelectComponent.extend(TagsMixin, {
|
||||
},
|
||||
|
||||
mutateValues(values) {
|
||||
this.set("tagGroups", values.filter(v => v));
|
||||
this.set(
|
||||
"tagGroups",
|
||||
values.filter(v => v)
|
||||
);
|
||||
},
|
||||
|
||||
@discourseComputed("tagGroups")
|
||||
|
||||
@@ -187,7 +187,7 @@ export default Mixin.create({
|
||||
const offsetBottom = this.element.getBoundingClientRect().bottom;
|
||||
const windowWidth = $(window).width();
|
||||
|
||||
if (this.fullWidthOnMobile && (this.site && this.site.isMobileDevice)) {
|
||||
if (this.fullWidthOnMobile && this.site && this.site.isMobileDevice) {
|
||||
const margin = 10;
|
||||
const relativeLeft =
|
||||
$(this.element).offset().left - $(window).scrollLeft();
|
||||
|
||||
Reference in New Issue
Block a user