mirror of
https://ghfast.top/https://github.com/discourse/discourse-solved-reminders-plugin.git
synced 2026-07-16 11:46:35 +08:00
16 lines
385 B
JavaScript
16 lines
385 B
JavaScript
import { withPluginApi } from "discourse/lib/plugin-api";
|
|
|
|
export default {
|
|
name: "extend-for-solved-reminders",
|
|
|
|
initialize(container) {
|
|
const siteSettings = container.lookup("service:site-settings");
|
|
if (!siteSettings.solved_reminders_plugin_enabled) {
|
|
return;
|
|
}
|
|
|
|
withPluginApi((api) => {
|
|
api.addSaveableCustomFields("notifications");
|
|
});
|
|
},
|
|
};
|