mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 05:34:28 +08:00
FIX: link to the user preferences page is incorrect in user admin page
This commit is contained in:
parent
dda918f862
commit
b9bf751b88
|
@ -79,7 +79,10 @@ export default Ember.Controller.extend(CanCheckEmails, {
|
|||
return [];
|
||||
},
|
||||
|
||||
preferencesPath: fmt("model.username_lower", "%@/preferences"),
|
||||
@computed("model.username_lower")
|
||||
preferencesPath(username) {
|
||||
return userPath(`${username}/preferences`);
|
||||
},
|
||||
|
||||
@computed("model.can_delete_all_posts", "model.staff", "model.post_count")
|
||||
deleteAllPostsExplanation(canDeleteAllPosts, staff, postCount) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user