mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 02:52:44 +08:00
Fix the build.
This commit is contained in:
parent
cb622ead43
commit
6597cc4cd0
|
@ -108,8 +108,6 @@ export default RestModel.extend({
|
|||
const result = {};
|
||||
if (summary) {
|
||||
result.filter = "summary";
|
||||
} else {
|
||||
result.filter = "none";
|
||||
}
|
||||
|
||||
const userFilters = this.get("userFilters");
|
||||
|
@ -191,8 +189,13 @@ export default RestModel.extend({
|
|||
toggleSummary() {
|
||||
this.get("userFilters").clear();
|
||||
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")) {
|
||||
this.jumpToSecondVisible();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user