From c7ce20283bd66db86fa7dd060077f2708719d06f Mon Sep 17 00:00:00 2001 From: Eric Smith Date: Tue, 8 Nov 2022 15:07:45 -0700 Subject: [PATCH] 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. --- docs/tutorials/new-feature-tutorial.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/tutorials/new-feature-tutorial.md b/docs/tutorials/new-feature-tutorial.md index d488b8ac79..8bb2dc92c8 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, // ...