-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REFACTOR: old patterns and deprecations
- Loading branch information
1 parent
a36ebf8
commit b7f7251
Showing
6 changed files
with
21 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
assets/javascripts/discourse/routes/user-activity-approval-given.js.es6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import UserTopicListRoute from "discourse/routes/user-topic-list"; | ||
|
||
export default UserTopicListRoute.extend({ | ||
model: function() { | ||
model() { | ||
const username = this.modelFor("user").username_lower; | ||
return this.store.findFiltered("topicList", { | ||
filter: `topics/approval-given/${this.modelFor("user").get( | ||
"username_lower" | ||
)}` | ||
filter: `topics/approval-given/${username}` | ||
}); | ||
} | ||
}); |
7 changes: 3 additions & 4 deletions
7
assets/javascripts/discourse/routes/user-activity-approval-pending.js.es6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
import UserTopicListRoute from "discourse/routes/user-topic-list"; | ||
|
||
export default UserTopicListRoute.extend({ | ||
model: function() { | ||
model() { | ||
const username = this.modelFor("user").username_lower; | ||
return this.store.findFiltered("topicList", { | ||
filter: `topics/approval-pending/${this.modelFor("user").get( | ||
"username_lower" | ||
)}` | ||
filter: `topics/approval-pending/${username}` | ||
}); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters