mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: lint files
This commit is contained in:
parent
e7226a8c84
commit
03efbad932
@ -84,7 +84,9 @@ const controllerOpts = {
|
|||||||
|
|
||||||
resetNew() {
|
resetNew() {
|
||||||
this.topicTrackingState.resetNew();
|
this.topicTrackingState.resetNew();
|
||||||
Topic.resetNew(this.category, !this.noSubcategories).then(() => this.send("refresh"));
|
Topic.resetNew(this.category, !this.noSubcategories).then(() =>
|
||||||
|
this.send("refresh")
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
dismissReadPosts() {
|
dismissReadPosts() {
|
||||||
|
@ -766,7 +766,9 @@ Topic.reopenClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
resetNew(category, include_subcategories) {
|
resetNew(category, include_subcategories) {
|
||||||
const data = category ? { category_id: category.id, include_subcategories } : {};
|
const data = category
|
||||||
|
? { category_id: category.id, include_subcategories }
|
||||||
|
: {};
|
||||||
return ajax("/topics/reset-new", { type: "PUT", data });
|
return ajax("/topics/reset-new", { type: "PUT", data });
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -54,7 +54,9 @@ createWidget("search-context", {
|
|||||||
if (ctx) {
|
if (ctx) {
|
||||||
const description = searchContextDescription(
|
const description = searchContextDescription(
|
||||||
get(ctx, "type"),
|
get(ctx, "type"),
|
||||||
get(ctx, "user.username") || get(ctx, "category.name") || get(ctx, "tag.id")
|
get(ctx, "user.username") ||
|
||||||
|
get(ctx, "category.name") ||
|
||||||
|
get(ctx, "tag.id")
|
||||||
);
|
);
|
||||||
result.push(
|
result.push(
|
||||||
h("label", [
|
h("label", [
|
||||||
|
Loading…
Reference in New Issue
Block a user