mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 00:13:45 +08:00
DEV: refactor user preferences path method
This commit is contained in:
parent
b9bf751b88
commit
c88fd49591
|
@ -79,10 +79,7 @@ export default Ember.Controller.extend(CanCheckEmails, {
|
||||||
return [];
|
return [];
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed("model.username_lower")
|
preferencesPath: fmt("model.username_lower", userPath("%@/preferences")),
|
||||||
preferencesPath(username) {
|
|
||||||
return userPath(`${username}/preferences`);
|
|
||||||
},
|
|
||||||
|
|
||||||
@computed("model.can_delete_all_posts", "model.staff", "model.post_count")
|
@computed("model.can_delete_all_posts", "model.staff", "model.post_count")
|
||||||
deleteAllPostsExplanation(canDeleteAllPosts, staff, postCount) {
|
deleteAllPostsExplanation(canDeleteAllPosts, staff, postCount) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user