mirror of https://github.com/zulip/zulip.git
org settings: Fix dropdown value inconsistency.
The value in the handlebars template for `invite_to_stream_policy` is inconsistent with the value in the js file. Changing all three occurances to a third value, since that's the one we'll want moving forward. Co-Authored-By: Rishi Gupta <rishig@zulipchat.com>
This commit is contained in:
parent
68d3b9f5ca
commit
24cb31329c
|
@ -98,7 +98,7 @@ function get_property_value(property_name) {
|
|||
return "by_admins_only";
|
||||
}
|
||||
if (page_params.realm_invite_to_stream_policy === 3) {
|
||||
return "by_members_with_waiting_period";
|
||||
return "by_full_members";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -766,7 +766,7 @@ exports.build_page = function () {
|
|||
data.invite_to_stream_policy = 2;
|
||||
} else if (invite_to_stream_policy === "by_members") {
|
||||
data.invite_to_stream_policy = 1;
|
||||
} else if (invite_to_stream_policy === "by_members_with_waiting_period") {
|
||||
} else if (invite_to_stream_policy === "by_full_members") {
|
||||
data.invite_to_stream_policy = 3;
|
||||
}
|
||||
} else if (subsection === 'org_join') {
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
<select name="realm_invite_to_stream_policy" id="id_realm_invite_to_stream_policy" class="prop-element">
|
||||
<option value="by_members">{{t "Members and admins" }}</option>
|
||||
<option value="by_admins_only">{{t "Admins only" }}</option>
|
||||
<option value="by_members">{{t "All admins and members who can create streams" }}</option>
|
||||
<option value="by_full_members">{{t "All admins and members who can create streams" }}</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue