Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

docs: Update to match current admin.js

Eric Smithc7ce20283bd6
diff --git a/docs/tutorials/new-feature-tutorial.md b/docs/tutorials/new-feature-tutorial.md
index d488b8ac794..8bb2dc92c81 100644
--- a/docs/tutorials/new-feature-tutorial.md
+++ b/docs/tutorials/new-feature-tutorial.md
@@ -539,12 +539,11 @@ Then add the new form control in `static/js/admin.js`.
```diff
// static/js/admin.js
- function _setup_page() {
- var options = {
+ export function build_page() {
+ const options = {
+ custom_profile_field_types: page_params.custom_profile_field_types,
+ full_name: page_params.full_name,
realm_name: page_params.realm_name,
- realm_description: page_params.realm_description,
- realm_emails_restricted_to_domains: page_params.realm_emails_restricted_to_domains,
- realm_invite_required: page_params.realm_invite_required,
// ...
+ realm_mandatory_topics: page_params.mandatory_topics,
// ...