mirror of https://github.com/zulip/zulip.git
settings: Update dropdown in user roles modal.
This commit is contained in:
parent
37e00dce78
commit
ef8113556a
|
@ -313,6 +313,7 @@ exports.on_load_success = function (realm_people_data) {
|
|||
full_name: people.get_full_name(person.user_id),
|
||||
is_admin: person.is_admin,
|
||||
is_guest: person.is_guest,
|
||||
is_member: !person.is_admin && !person.is_guest,
|
||||
is_bot: person.is_bot,
|
||||
});
|
||||
var user_info_form_modal = $(html);
|
||||
|
|
|
@ -19,9 +19,9 @@
|
|||
<div class="input-group">
|
||||
<label class="input-label" for="user-role-select">{{t 'User role' }}</label>
|
||||
<select name="user-role-select" id="user-role-select">
|
||||
<option value="regular">{{t 'Regular member' }}</option>
|
||||
<option value="admin" {{#if is_admin}}selected{{/if}}>{{t 'Organization administrator' }}</option>
|
||||
<option value="guest" {{#if is_guest}}selected{{/if}}>{{t 'Guest'}}</option>
|
||||
<option value="regular" {{#if is_member}}selected{{/if}}>{{t 'Member' }}</option>
|
||||
<option value="admin" {{#if is_admin}}selected{{/if}}>{{t 'Administrator' }}</option>
|
||||
</select>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
Loading…
Reference in New Issue