mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-17 11:19:15 +00:00
remove marketing email checkbox from UserDetails screen
This commit is contained in:
+1
-3
@@ -7,7 +7,6 @@ import com.google.gwt.event.dom.client.ClickEvent;
|
||||
import com.google.gwt.text.shared.Renderer;
|
||||
import com.google.gwt.uibinder.client.UiField;
|
||||
import com.google.gwt.uibinder.client.UiHandler;
|
||||
import com.google.gwt.user.client.ui.CheckBox;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.ListBox;
|
||||
import com.google.gwt.user.client.ui.PasswordTextBox;
|
||||
@@ -32,7 +31,6 @@ public class AbstractUserDetails extends Composite implements UserDetailsView {
|
||||
@UiField public InputElement usernameUi;
|
||||
@UiField public TextBox nameUi;
|
||||
@UiField public TextBox companyUi;
|
||||
@UiField public CheckBox optOutOfMarketingEmailsUI;
|
||||
|
||||
@UiField(provided = true)
|
||||
public ValueListBox<String> localeUi = new ValueListBox<String>(new Renderer<String>() {
|
||||
@@ -116,7 +114,7 @@ public class AbstractUserDetails extends Composite implements UserDetailsView {
|
||||
@UiHandler("saveChangesUi")
|
||||
public void onSaveChangesClicked(ClickEvent event) {
|
||||
presenter.handleSaveChangesRequest(nameUi.getValue(), companyUi.getValue(), localeUi.getValue(),
|
||||
optOutOfMarketingEmailsUI.getValue(), defaultTenantUi.getSelectedValue());
|
||||
defaultTenantUi.getSelectedValue());
|
||||
}
|
||||
|
||||
@UiHandler("changeEmailUi")
|
||||
|
||||
+3
-3
@@ -48,9 +48,9 @@ public class UserDetailsPresenter implements AbstractUserDetails.Presenter {
|
||||
|
||||
@Override
|
||||
public void handleSaveChangesRequest(String fullName, String company, String locale,
|
||||
boolean didOptOutMarketingEmails, String defaultTenantIdAsString) {
|
||||
authenticationManager.updateUserProperties(fullName, company, locale, didOptOutMarketingEmails,
|
||||
defaultTenantIdAsString, new AsyncCallback<UserDTO>() {
|
||||
String defaultTenantIdAsString) {
|
||||
authenticationManager.updateUserProperties(fullName, company, locale, null, defaultTenantIdAsString,
|
||||
new AsyncCallback<UserDTO>() {
|
||||
@Override
|
||||
public void onSuccess(UserDTO result) {
|
||||
Notification.notify(
|
||||
|
||||
+1
-2
@@ -15,8 +15,7 @@ public interface UserDetailsView {
|
||||
void clearPasswordFields();
|
||||
|
||||
public interface Presenter {
|
||||
void handleSaveChangesRequest(String fullName, String company, String locale, boolean didOptOutMarketingEmails,
|
||||
String defaultTenantIdAsString);
|
||||
void handleSaveChangesRequest(String fullName, String company, String locale, String defaultTenantIdAsString);
|
||||
void handleEmailChangeRequest(String email);
|
||||
void handlePasswordChangeRequest(String oldPassword, String newPassword, String newPasswordConfirmation);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user