mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix the build.
This commit is contained in:
parent
cb622ead43
commit
6597cc4cd0
@ -108,8 +108,6 @@ export default RestModel.extend({
|
|||||||
const result = {};
|
const result = {};
|
||||||
if (summary) {
|
if (summary) {
|
||||||
result.filter = "summary";
|
result.filter = "summary";
|
||||||
} else {
|
|
||||||
result.filter = "none";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const userFilters = this.get("userFilters");
|
const userFilters = this.get("userFilters");
|
||||||
@ -191,8 +189,13 @@ export default RestModel.extend({
|
|||||||
toggleSummary() {
|
toggleSummary() {
|
||||||
this.get("userFilters").clear();
|
this.get("userFilters").clear();
|
||||||
this.toggleProperty("summary");
|
this.toggleProperty("summary");
|
||||||
|
const opts = {};
|
||||||
|
|
||||||
return this.refresh().then(() => {
|
if (!this.get("summary")) {
|
||||||
|
opts.filter = "none";
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.refresh(opts).then(() => {
|
||||||
if (this.get("summary")) {
|
if (this.get("summary")) {
|
||||||
this.jumpToSecondVisible();
|
this.jumpToSecondVisible();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user