settings: Update dropdown in user roles modal.

This commit is contained in:
Rishi Gupta 2018-10-29 23:02:38 -07:00
parent 37e00dce78
commit ef8113556a
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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}}