remove endorse button from the profile header menu and some related funcs, fixes #328
This commit is contained in:
parent
30ebdf30ff
commit
9864966eb0
|
@ -132,7 +132,7 @@ class Header extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
menu.push({ text: intl.formatMessage(messages.add_or_remove_from_list), action: this.props.onAddToList });
|
menu.push({ text: intl.formatMessage(messages.add_or_remove_from_list), action: this.props.onAddToList });
|
||||||
menu.push({ text: intl.formatMessage(account.getIn(['relationship', 'endorsed']) ? messages.unendorse : messages.endorse), action: this.props.onEndorseToggle });
|
// menu.push({ text: intl.formatMessage(account.getIn(['relationship', 'endorsed']) ? messages.unendorse : messages.endorse), action: this.props.onEndorseToggle });
|
||||||
menu.push(null);
|
menu.push(null);
|
||||||
} else if (version.software === 'Pleroma') {
|
} else if (version.software === 'Pleroma') {
|
||||||
menu.push({ text: intl.formatMessage(messages.add_or_remove_from_list), action: this.props.onAddToList });
|
menu.push({ text: intl.formatMessage(messages.add_or_remove_from_list), action: this.props.onAddToList });
|
||||||
|
|
|
@ -72,9 +72,9 @@ export default class Header extends ImmutablePureComponent {
|
||||||
this.props.onUnblockDomain(domain);
|
this.props.onUnblockDomain(domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
handleEndorseToggle = () => {
|
// handleEndorseToggle = () => {
|
||||||
this.props.onEndorseToggle(this.props.account);
|
// this.props.onEndorseToggle(this.props.account);
|
||||||
}
|
// }
|
||||||
|
|
||||||
handleAddToList = () => {
|
handleAddToList = () => {
|
||||||
this.props.onAddToList(this.props.account);
|
this.props.onAddToList(this.props.account);
|
||||||
|
|
|
@ -8,8 +8,8 @@ import {
|
||||||
blockAccount,
|
blockAccount,
|
||||||
unblockAccount,
|
unblockAccount,
|
||||||
unmuteAccount,
|
unmuteAccount,
|
||||||
pinAccount,
|
// pinAccount,
|
||||||
unpinAccount,
|
// unpinAccount,
|
||||||
} from '../../../actions/accounts';
|
} from '../../../actions/accounts';
|
||||||
import {
|
import {
|
||||||
mentionCompose,
|
mentionCompose,
|
||||||
|
@ -95,13 +95,13 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
onEndorseToggle(account) {
|
// onEndorseToggle(account) {
|
||||||
if (account.getIn(['relationship', 'endorsed'])) {
|
// if (account.getIn(['relationship', 'endorsed'])) {
|
||||||
dispatch(unpinAccount(account.get('id')));
|
// dispatch(unpinAccount(account.get('id')));
|
||||||
} else {
|
// } else {
|
||||||
dispatch(pinAccount(account.get('id')));
|
// dispatch(pinAccount(account.get('id')));
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
|
|
||||||
onReport(account) {
|
onReport(account) {
|
||||||
dispatch(initReport(account));
|
dispatch(initReport(account));
|
||||||
|
|
Loading…
Reference in New Issue