DEV: Update TextLib imports (#452)
This commit is contained in:
parent
e4d1e22a10
commit
67b8a8c791
|
|
@ -1,5 +1,5 @@
|
|||
import I18n from "I18n";
|
||||
import TextLib from "discourse/lib/text";
|
||||
import { cookAsync } from "discourse/lib/text";
|
||||
import Group from "discourse/models/group";
|
||||
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
||||
import Controller from "@ember/controller";
|
||||
|
|
@ -238,7 +238,7 @@ export default Controller.extend(ModalFunctionality, {
|
|||
edit_reason: I18n.t("discourse_post_event.destroy_event"),
|
||||
};
|
||||
|
||||
return TextLib.cookAsync(newRaw).then((cooked) => {
|
||||
return cookAsync(newRaw).then((cooked) => {
|
||||
props.cooked = cooked.string;
|
||||
return post
|
||||
.save(props)
|
||||
|
|
@ -293,7 +293,7 @@ export default Controller.extend(ModalFunctionality, {
|
|||
edit_reason: I18n.t("discourse_post_event.edit_reason"),
|
||||
};
|
||||
|
||||
return TextLib.cookAsync(newRaw).then((cooked) => {
|
||||
return cookAsync(newRaw).then((cooked) => {
|
||||
props.cooked = cooked.string;
|
||||
return post
|
||||
.save(props)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import I18n from "I18n";
|
||||
import TextLib, { emojiUnescape } from "discourse/lib/text";
|
||||
import { cookAsync, emojiUnescape } from "discourse/lib/text";
|
||||
import { exportEntity } from "discourse/lib/export-csv";
|
||||
import cleanTitle from "../lib/clean-title";
|
||||
import { dasherize } from "@ember/string";
|
||||
|
|
@ -79,7 +79,7 @@ export default createWidget("discourse-post-event", {
|
|||
edit_reason: I18n.t("discourse_post_event.edit_reason"),
|
||||
};
|
||||
|
||||
return TextLib.cookAsync(newRaw).then((cooked) => {
|
||||
return cookAsync(newRaw).then((cooked) => {
|
||||
props.cooked = cooked.string;
|
||||
return post.save(props);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue