DEV: Apply prettier

This commit is contained in:
David Taylor 2020-09-09 18:41:42 +01:00
parent 43c68f6ffd
commit e78537ac46
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434
3 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,4 @@
module.exports = { module.exports = {
plugins: ["ember-template-lint-plugin-discourse"], plugins: ["ember-template-lint-plugin-discourse"],
extends: "discourse:recommended" extends: "discourse:recommended",
}; };

View File

@ -29,10 +29,10 @@ export default UserTopicsList.extend({
params: { params: {
order: this.order, order: this.order,
ascending: this.ascending, ascending: this.ascending,
q: this.q q: this.q,
} },
}) })
.then(result => this.set("model", result)) .then((result) => this.set("model", result))
.finally(() => { .finally(() => {
this.set("loading", false); this.set("loading", false);
}); });
@ -59,6 +59,6 @@ export default UserTopicsList.extend({
}, },
onChangeFilter(value) { onChangeFilter(value) {
debounce(this, this._setSearchTerm, value, INPUT_DELAY * 2); debounce(this, this._setSearchTerm, value, INPUT_DELAY * 2);
} },
}, },
}); });

View File

@ -2,7 +2,6 @@ import I18n from "I18n";
import UserTopicListRoute from "discourse/routes/user-topic-list"; import UserTopicListRoute from "discourse/routes/user-topic-list";
export default UserTopicListRoute.extend({ export default UserTopicListRoute.extend({
userActionType: 16, userActionType: 16,
noContentHelpKey: "discourse_assigns.no_assigns", noContentHelpKey: "discourse_assigns.no_assigns",
@ -16,7 +15,7 @@ export default UserTopicListRoute.extend({
exclude_category_ids: [-1], exclude_category_ids: [-1],
order: params.order, order: params.order,
ascending: params.ascending, ascending: params.ascending,
q: params.q q: params.q,
}, },
}); });
}, },