DEV: refactor user preferences path method

This commit is contained in:
Vinoth Kannan 2019-01-24 18:39:13 +05:30
parent b9bf751b88
commit c88fd49591
1 changed files with 1 additions and 4 deletions

View File

@ -79,10 +79,7 @@ export default Ember.Controller.extend(CanCheckEmails, {
return [];
},
@computed("model.username_lower")
preferencesPath(username) {
return userPath(`${username}/preferences`);
},
preferencesPath: fmt("model.username_lower", userPath("%@/preferences")),
@computed("model.can_delete_all_posts", "model.staff", "model.post_count")
deleteAllPostsExplanation(canDeleteAllPosts, staff, postCount) {