DEV: APIs for plugin to add custom reviewable confirm modal (#12246)

This commit is contained in:
Mark VanLandingham
2021-03-02 10:28:27 -06:00
committed by GitHub
parent 4c1e02d412
commit 4adce0d844
8 changed files with 95 additions and 6 deletions

View File

@ -877,6 +877,13 @@ class Plugin::Instance
DiscoursePluginRegistry.demon_processes << demon_class
end
def add_permitted_reviewable_param(type, param)
DiscoursePluginRegistry.register_reviewable_param({
type: type,
param: param
}, self)
end
protected
def self.js_path