mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:21:18 +08:00
DEV: APIs for plugin to add custom reviewable confirm modal (#12246)
This commit is contained in:

committed by
GitHub

parent
4c1e02d412
commit
4adce0d844
@ -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
|
||||
|
Reference in New Issue
Block a user