use of org.kie.workbench.common.screens.social.hp.client.homepage.events.UserEditedEvent in project kie-wb-common by kiegroup.
the class UserHomePageSidePresenter method createLoggedUserActionLink.
private void createLoggedUserActionLink(final SocialUser socialUser, final Button followUnfollow) {
followUnfollow.setText(Constants.INSTANCE.Edit());
followUnfollow.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
editUserForm.show(socialUser, new ParameterizedCommand<SocialUser>() {
@Override
public void execute(SocialUser socialUser) {
socialUserService.call().update(socialUser);
refreshPage(socialUser.getUserName());
userEditedEvent.fire(new UserEditedEvent(socialUser.getUserName()));
}
});
}
});
}
Aggregations