web: people: fix avatar changes
This commit is contained in:
parent
2c7c5532eb
commit
065115fffd
@ -180,7 +180,7 @@ class AvatarEditorPage extends React.PureComponent {
|
|||||||
})
|
})
|
||||||
.then(() => this.props.fetchProfile(profile.id))
|
.then(() => this.props.fetchProfile(profile.id))
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.props.setUser(res);
|
this.props.isMe && this.props.setUser(res);
|
||||||
return toggleAvatarEditor(false);
|
return toggleAvatarEditor(false);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -198,7 +198,7 @@ class AvatarEditorPage extends React.PureComponent {
|
|||||||
})
|
})
|
||||||
.then(() => this.props.fetchProfile(profile.id))
|
.then(() => this.props.fetchProfile(profile.id))
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.props.setUser(res);
|
this.props.isMe && this.props.setUser(res);
|
||||||
return toggleAvatarEditor(false);
|
return toggleAvatarEditor(false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -319,6 +319,7 @@ export default withRouter(
|
|||||||
toggleAvatarEditor: peopleStore.avatarEditorStore.toggleAvatarEditor,
|
toggleAvatarEditor: peopleStore.avatarEditorStore.toggleAvatarEditor,
|
||||||
fetchProfile: peopleStore.targetUserStore.getTargetUser,
|
fetchProfile: peopleStore.targetUserStore.getTargetUser,
|
||||||
profile: peopleStore.targetUserStore.targetUser,
|
profile: peopleStore.targetUserStore.targetUser,
|
||||||
|
isMe: peopleStore.targetUserStore.isMe,
|
||||||
avatarMax: peopleStore.avatarEditorStore.avatarMax,
|
avatarMax: peopleStore.avatarEditorStore.avatarMax,
|
||||||
setAvatarMax: peopleStore.avatarEditorStore.setAvatarMax,
|
setAvatarMax: peopleStore.avatarEditorStore.setAvatarMax,
|
||||||
updateProfile: peopleStore.targetUserStore.updateProfile,
|
updateProfile: peopleStore.targetUserStore.updateProfile,
|
||||||
|
Loading…
Reference in New Issue
Block a user