Skip to content
Snippets Groups Projects
Commit a7e82dc5 authored by Guilherme Gazzo's avatar Guilherme Gazzo
Browse files

comment

parent 3e1274d8
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,14 @@ RocketChat.ChannelSettings = new class {
constructor() {
this.options = new ReactiveVar({});
}
/*
* Adds an option in Channel Settings
* @config (object)
* id: option id (required)
* template (string): template name to render (required)
* validation (function): if option should be displayed
*/
addOption(config) {
if (config == null || config.id == null) {
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment