docs: Update to match current admin.js

Made some small changes to documentation to match the code in the
current admin.js

Fixes: There was no related issue for this fix.
This commit is contained in:
Eric Smith 2022-11-08 15:07:45 -07:00 committed by Tim Abbott
parent d15b29f056
commit c7ce20283b
1 changed files with 4 additions and 5 deletions

View File

@ -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,
// ...