FIX: some composer messages were broken (#18392)
This commit is contained in:
parent
57caf08e13
commit
bc97f3d1c1
|
@ -627,7 +627,7 @@ export default Controller.extend({
|
||||||
});
|
});
|
||||||
this.appEvents.trigger("composer-messages:create", {
|
this.appEvents.trigger("composer-messages:create", {
|
||||||
extraClass: "custom-body",
|
extraClass: "custom-body",
|
||||||
templateName: "custom-body",
|
templateName: "education",
|
||||||
body,
|
body,
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
|
@ -776,7 +776,7 @@ export default Controller.extend({
|
||||||
if (body) {
|
if (body) {
|
||||||
this.appEvents.trigger("composer-messages:create", {
|
this.appEvents.trigger("composer-messages:create", {
|
||||||
extraClass: "custom-body",
|
extraClass: "custom-body",
|
||||||
templateName: "custom-body",
|
templateName: "education",
|
||||||
body,
|
body,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -788,7 +788,7 @@ export default Controller.extend({
|
||||||
mentions.forEach((mention) => {
|
mentions.forEach((mention) => {
|
||||||
this.appEvents.trigger("composer-messages:create", {
|
this.appEvents.trigger("composer-messages:create", {
|
||||||
extraClass: "custom-body",
|
extraClass: "custom-body",
|
||||||
templateName: "custom-body",
|
templateName: "education",
|
||||||
body: I18n.t(`composer.cannot_see_mention.${mention.reason}`, {
|
body: I18n.t(`composer.cannot_see_mention.${mention.reason}`, {
|
||||||
username: mention.name,
|
username: mention.name,
|
||||||
}),
|
}),
|
||||||
|
@ -799,7 +799,7 @@ export default Controller.extend({
|
||||||
hereMention(count) {
|
hereMention(count) {
|
||||||
this.appEvents.trigger("composer-messages:create", {
|
this.appEvents.trigger("composer-messages:create", {
|
||||||
extraClass: "custom-body",
|
extraClass: "custom-body",
|
||||||
templateName: "custom-body",
|
templateName: "education",
|
||||||
body: I18n.t("composer.here_mention", {
|
body: I18n.t("composer.here_mention", {
|
||||||
here: this.siteSettings.here_mention,
|
here: this.siteSettings.here_mention,
|
||||||
count,
|
count,
|
||||||
|
|
Loading…
Reference in New Issue