mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: add deprecation ids for base-url, fa-icon and chat service (#27911)
This commit is contained in:
parent
97e2b353f6
commit
98cbfd598c
@ -5,6 +5,8 @@ import { registerRawHelper } from "discourse-common/lib/helpers";
|
|||||||
registerRawHelper("base-url", baseUrl);
|
registerRawHelper("base-url", baseUrl);
|
||||||
|
|
||||||
export default function baseUrl() {
|
export default function baseUrl() {
|
||||||
deprecated("Use `{{base-path}}` instead of `{{base-url}}`");
|
deprecated("Use `{{base-path}}` instead of `{{base-url}}`", {
|
||||||
|
id: "discourse.base-url",
|
||||||
|
});
|
||||||
return getUrl("");
|
return getUrl("");
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,8 @@ export function iconHTML(id, params) {
|
|||||||
|
|
||||||
registerRawHelper("fa-icon", faIcon);
|
registerRawHelper("fa-icon", faIcon);
|
||||||
export default function faIcon(icon, params) {
|
export default function faIcon(icon, params) {
|
||||||
deprecated("Use `{{d-icon}}` instead of `{{fa-icon}}");
|
deprecated("Use `{{d-icon}}` instead of `{{fa-icon}}", {
|
||||||
|
id: "discourse.fa-icon",
|
||||||
|
});
|
||||||
return htmlSafe(iconHTML(icon, params));
|
return htmlSafe(iconHTML(icon, params));
|
||||||
}
|
}
|
||||||
|
@ -391,7 +391,8 @@ export default class Chat extends Service {
|
|||||||
|
|
||||||
addToolbarButton() {
|
addToolbarButton() {
|
||||||
deprecated(
|
deprecated(
|
||||||
"Use the new chat API `api.registerChatComposerButton` instead of `chat.addToolbarButton`"
|
"Use the new chat API `api.registerChatComposerButton` instead of `chat.addToolbarButton`",
|
||||||
|
{ id: "discourse.chat.addToolbarButton" }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user