Account suggestion: Show suggestion with email that was matched
If an account is suggested because the query string matched on a secondary email address, then the displayed suggestion should show that secondary email in the suggestion (and not the preferred email). This way the user can see why the account was suggested. Change-Id: I86a9e5c099d4619e064aa52c68ed5b98c6faff13 Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
@@ -17,6 +17,7 @@ package com.google.gerrit.client.info;
|
||||
import com.google.gerrit.reviewdb.client.Account;
|
||||
import com.google.gwt.core.client.JavaScriptObject;
|
||||
import com.google.gwt.core.client.JsArray;
|
||||
import com.google.gwt.core.client.JsArrayString;
|
||||
import com.google.gwtjsonrpc.client.impl.ser.JavaSqlTimestamp_JsonSerializer;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
@@ -29,6 +30,8 @@ public class AccountInfo extends JavaScriptObject {
|
||||
public final native int _accountId() /*-{ return this._account_id || 0; }-*/;
|
||||
public final native String name() /*-{ return this.name; }-*/;
|
||||
public final native String email() /*-{ return this.email; }-*/;
|
||||
public final native JsArrayString secondaryEmails()
|
||||
/*-{ return this.secondary_emails; }-*/;
|
||||
public final native String username() /*-{ return this.username; }-*/;
|
||||
|
||||
public final Timestamp registeredOn() {
|
||||
|
||||
Reference in New Issue
Block a user