UX: show custom footer on user activity and preferences pages (#6080)

This commit is contained in:
Maja Komel 2018-07-10 10:14:26 +02:00 committed by Guo Xiang Tan
parent 21f333654c
commit ba7a8db0e8
9 changed files with 48 additions and 3 deletions

View File

@ -0,0 +1,5 @@
import RestrictedUserRoute from "discourse/routes/restricted-user";
export default RestrictedUserRoute.extend({
showFooter: true
});

View File

@ -0,0 +1,5 @@
import RestrictedUserRoute from "discourse/routes/restricted-user";
export default RestrictedUserRoute.extend({
showFooter: true
});

View File

@ -0,0 +1,5 @@
import RestrictedUserRoute from "discourse/routes/restricted-user";
export default RestrictedUserRoute.extend({
showFooter: true
});

View File

@ -1,6 +1,8 @@
import RestrictedUserRoute from "discourse/routes/restricted-user";
export default RestrictedUserRoute.extend({
showFooter: true,
model() {
return this.modelFor("user");
},

View File

@ -1,6 +1,8 @@
import RestrictedUserRoute from "discourse/routes/restricted-user";
export default RestrictedUserRoute.extend({
showFooter: true,
model() {
return this.modelFor("user");
},

View File

@ -0,0 +1,5 @@
import RestrictedUserRoute from "discourse/routes/restricted-user";
export default RestrictedUserRoute.extend({
showFooter: true
});

View File

@ -3,5 +3,12 @@ import UserAction from "discourse/models/user-action";
export default UserActivityStreamRoute.extend({
userActionType: UserAction.TYPES["bookmarks"],
noContentHelpKey: "user_activity.no_bookmarks"
noContentHelpKey: "user_activity.no_bookmarks",
actions: {
didTransition() {
this.controllerFor("application").set("showFooter", true);
return true;
}
}
});

View File

@ -3,5 +3,12 @@ import UserAction from "discourse/models/user-action";
export default UserActivityStreamRoute.extend({
userActionType: UserAction.TYPES["likes_given"],
noContentHelpKey: "user_activity.no_likes_given"
noContentHelpKey: "user_activity.no_likes_given",
actions: {
didTransition() {
this.controllerFor("application").set("showFooter", true);
return true;
}
}
});

View File

@ -3,5 +3,12 @@ import UserAction from "discourse/models/user-action";
export default UserActivityStreamRoute.extend({
userActionType: UserAction.TYPES["posts"],
noContentHelpKey: "user_activity.no_replies"
noContentHelpKey: "user_activity.no_replies",
actions: {
didTransition() {
this.controllerFor("application").set("showFooter", true);
return true;
}
}
});