streams: Reorder stream-privacy choices in UI.

This commit moves 'Web public' option to top in
the stream privacy choices in stream creation
form and changing privacy modal.
This commit is contained in:
Sahil Batra
2021-12-07 12:27:29 +05:30
committed by Tim Abbott
parent 6d09eab285
commit 1049867485

View File

@@ -103,6 +103,14 @@ const stream_ids_by_name = new FoldDict();
const default_stream_ids = new Set();
export const stream_privacy_policy_values = {
web_public: {
code: "web-public",
name: $t({defaultMessage: "Web public"}),
description: $t({
defaultMessage:
"Organization members can join (guests must be invited by a subscriber); anyone on the Internet can view complete message history without creating an account",
}),
},
public: {
code: "public",
name: $t({defaultMessage: "Public"}),
@@ -127,14 +135,6 @@ export const stream_privacy_policy_values = {
"Must be invited by a subscriber; new subscribers can only see messages sent after they join; hidden from non-administrator users",
}),
},
web_public: {
code: "web-public",
name: $t({defaultMessage: "Web public"}),
description: $t({
defaultMessage:
"Organization members can join (guests must be invited by a subscriber); anyone on the Internet can view complete message history without creating an account",
}),
},
};
export const stream_post_policy_values = {