Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
knrt10 committed Mar 7, 2019
1 parent 02c6312 commit e64d348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rocketchat-ui-flextab/client/tabs/userActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,13 @@ export const getActions = function({ user, directActions, hideAdminControls }) {
}
if (isBlocker()) {
return {
icon : 'mic',
icon : 'ban',
name:t('Unblock_User'),
action: prevent(getUser, ({ _id }) => Meteor.call('unblockUser', { rid: Session.get('openedRoom'), blocked: _id }, success(() => toastr.success(t('User_is_unblocked'))))),
};
}
return {
icon : 'mic',
icon : 'ban',
name:t('Block_User'),
modifier: 'alert',
action: prevent(getUser, ({ _id }) => Meteor.call('blockUser', { rid: Session.get('openedRoom'), blocked: _id }, success(() => toastr.success(t('User_is_blocked'))))),
Expand Down

0 comments on commit e64d348

Please sign in to comment.