legal_information: None,
description: None,
community_creation_admin_only: None,
+ application_email_admins: None,
auth: undefined,
hide_modlog_mod_names: Some(true),
}),
default_theme: Some(site.default_theme),
default_post_listing_type: Some(site.default_post_listing_type),
legal_information: site.legal_information,
+ application_email_admins: Some(site.application_email_admins),
hide_modlog_mod_names: site.hide_modlog_mod_names,
auth: undefined,
}),
</div>
</div>
</div>
+ <div className="form-group row">
+ <div className="col-12">
+ <div className="form-check">
+ <input
+ className="form-check-input"
+ id="create-site-application-email-admins"
+ type="checkbox"
+ checked={toUndefined(
+ this.state.siteForm.application_email_admins
+ )}
+ onChange={linkEvent(
+ this,
+ this.handleSiteApplicationEmailAdmins
+ )}
+ />
+ <label
+ className="form-check-label"
+ htmlFor="create-site-email-admins"
+ >
+ {i18n.t("application_email_admins")}
+ </label>
+ </div>
+ </div>
+ </div>
<div className="form-group row">
<div className="col-12">
<label
private_instance: sForm.private_instance,
default_theme: sForm.default_theme,
default_post_listing_type: sForm.default_post_listing_type,
+ application_email_admins: sForm.application_email_admins,
auth: auth().unwrap(),
hide_modlog_mod_names: sForm.hide_modlog_mod_names,
});
i.setState(i.state);
}
+ handleSiteApplicationEmailAdmins(i: SiteForm, event: any) {
+ i.state.siteForm.application_email_admins = Some(event.target.checked);
+ i.setState(i.state);
+ }
+
handleSitePrivateInstance(i: SiteForm, event: any) {
i.state.siteForm.private_instance = Some(event.target.checked);
i.setState(i.state);