mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
DEV: Import set, setProperties, helper, and string functions (#8297)
This commit is contained in:

committed by
GitHub

parent
61b1f9c36b
commit
edc135d9c5
@ -8,6 +8,7 @@ import { userPath } from "discourse/lib/url";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import { default as computed } from "ember-addons/ember-computed-decorators";
|
||||
import { fmt } from "discourse/lib/computed";
|
||||
import { htmlSafe } from "@ember/template";
|
||||
|
||||
export default Controller.extend(CanCheckEmails, {
|
||||
adminTools: service(),
|
||||
@ -47,7 +48,7 @@ export default Controller.extend(CanCheckEmails, {
|
||||
automaticGroups(automaticGroups) {
|
||||
return automaticGroups
|
||||
.map(group => {
|
||||
const name = Ember.String.htmlSafe(group.name);
|
||||
const name = htmlSafe(group.name);
|
||||
return `<a href="/g/${name}">${name}</a>`;
|
||||
})
|
||||
.join(", ");
|
||||
|
Reference in New Issue
Block a user