25 lines
620 B
JavaScript
25 lines
620 B
JavaScript
import UserActivityStreamRoute from "discourse/routes/user-activity-stream";
|
|
import I18n from "I18n";
|
|
|
|
export default UserActivityStreamRoute.extend({
|
|
userActionType: 15,
|
|
noContentHelpKey: "solved.no_solutions",
|
|
|
|
emptyState() {
|
|
const user = this.modelFor("user");
|
|
|
|
let title, body;
|
|
if (this.isCurrentUser(user)) {
|
|
title = I18n.t("solved.no_solved_topics_title");
|
|
body = I18n.t("solved.no_solved_topics_body");
|
|
} else {
|
|
title = I18n.t("solved.no_solved_topics_title_others", {
|
|
username: user.username,
|
|
});
|
|
body = "";
|
|
}
|
|
|
|
return { title, body };
|
|
},
|
|
});
|