diff options
author | Nolan Lawson <nolan@nolanlawson.com> | 2017-10-29 08:10:15 -0700 |
---|---|---|
committer | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-10-30 00:10:15 +0900 |
commit | 5e111ce16dcfde66afcd9dcee5f3819ee00cc6bc (patch) | |
tree | 3210da8fda48d6cf3f62988bb4fd7f5b6a7dc8b7 /app/javascript/mastodon/containers/account_container.js | |
parent | 4080569c2dd6d9d8b794cecd4f11492a2f57fcea (diff) |
Reactor unfollow_modal, boost_modal, delete_modal (#5505)
Diffstat (limited to 'app/javascript/mastodon/containers/account_container.js')
-rw-r--r-- | app/javascript/mastodon/containers/account_container.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/containers/account_container.js b/app/javascript/mastodon/containers/account_container.js index 7c77cb764..987df9f7b 100644 --- a/app/javascript/mastodon/containers/account_container.js +++ b/app/javascript/mastodon/containers/account_container.js @@ -12,6 +12,7 @@ import { unmuteAccount, } from '../actions/accounts'; import { openModal } from '../actions/modal'; +import { unfollowModal } from '../initial_state'; const messages = defineMessages({ unfollowConfirm: { id: 'confirmations.unfollow.confirm', defaultMessage: 'Unfollow' }, @@ -23,7 +24,6 @@ const makeMapStateToProps = () => { const mapStateToProps = (state, props) => ({ account: getAccount(state, props.id), me: state.getIn(['meta', 'me']), - unfollowModal: state.getIn(['meta', 'unfollow_modal']), }); return mapStateToProps; @@ -33,7 +33,7 @@ const mapDispatchToProps = (dispatch, { intl }) => ({ onFollow (account) { if (account.getIn(['relationship', 'following']) || account.getIn(['relationship', 'requested'])) { - if (this.unfollowModal) { + if (unfollowModal) { dispatch(openModal('CONFIRM', { message: <FormattedMessage id='confirmations.unfollow.message' defaultMessage='Are you sure you want to unfollow {name}?' values={{ name: <strong>@{account.get('acct')}</strong> }} />, confirm: intl.formatMessage(messages.unfollowConfirm), |