- @computed("options", "action")
- actionTitle(opts, action) {
- if (TITLES[action]) {
- return I18n.t(TITLES[action]);
- }
-
- switch (action) {
- case REPLY:
- if (opts.userAvatar && opts.userLink) {
- return this._formatReplyToUserPost(opts.userAvatar, opts.userLink);
- } else if (opts.topicLink) {
- return this._formatReplyToTopic(opts.topicLink);
- }
- case EDIT:
- if (opts.userAvatar && opts.userLink && opts.postLink) {
- return this._formatEditUserPost(
- opts.userAvatar,
- opts.userLink,
- opts.postLink,
- opts.originalUser
- );
- }
- };
- },