mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
invites: Frontend changes for adding the new realm setting.
This commit does the changes in frontend required for adding the new setting `Who can create multiuse invite link.` Fixes #15159.
This commit is contained in:
@@ -190,7 +190,10 @@ function initialize_left_sidebar() {
|
||||
}
|
||||
|
||||
export function update_invite_user_option() {
|
||||
if (!settings_data.user_can_invite_users_by_email()) {
|
||||
if (
|
||||
!settings_data.user_can_invite_users_by_email() &&
|
||||
!settings_data.user_can_create_multiuse_invite()
|
||||
) {
|
||||
$("#right-sidebar .invite-user-link").hide();
|
||||
} else {
|
||||
$("#right-sidebar .invite-user-link").show();
|
||||
|
||||
Reference in New Issue
Block a user