Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Remove room from roomPick setting #6912

Merged
merged 12 commits into from
May 17, 2017
5 changes: 4 additions & 1 deletion packages/rocketchat-ui-admin/client/admin.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ setFieldValue = (settingId, value, type, editor) ->

if editor is 'color'
new jscolor(input)

when 'roomPick'
selectedRooms = Template.instance().selectedRooms.get()
selectedRooms[settingId] = value
Template.instance().selectedRooms.set(selectedRooms)
else
input.val(value).change()

Expand Down
2 changes: 1 addition & 1 deletion packages/rocketchat-ui-admin/client/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ <h2>
{{> inputAutocomplete settings=autocompleteRoom id=_id name=_id class="search autocomplete" autocomplete="off" disabled=isDisabled.disabled}}
<ul class="selected-rooms">
{{#each selectedRooms}}
<li class="remove-room" data-setting={{_id}}>{{name}} <i class="icon-cancel secondary-font-color"></i></li>
<li class="remove-room" data-setting={{../_id}}>{{name}} <i class="icon-cancel secondary-font-color"></i></li>
{{/each}}
</ul>
</div>
Expand Down