commit | 32b6adfade11355bf2d362825815b70c84c08730 | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Tue Jun 12 17:10:41 2018 +0900 |
committer | David Pursehouse <dpursehouse@collab.net> | Tue Jun 12 17:10:41 2018 +0900 |
tree | 57e8a4ffb19727c5dc5fa4ed424b5fd87e7790e4 | |
parent | f33b4e5aa9349178c1d83dd254a5b19c71cdc019 [diff] |
MyPasswordScreen: Fix default text in password field The default text says: "click 'generate' to revoke an old password" but the label on the button is actually 'Generate Password'. Change the text to be consistent with the label. At the same time, move the text into the AccountConstants class. Change-Id: I2220103237c71d653f62fbf76ea866604f195d65
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/account/AccountConstants.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/account/AccountConstants.java index 4a3a5f8..87694f9 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/account/AccountConstants.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/account/AccountConstants.java
@@ -127,6 +127,8 @@ String buttonGeneratePassword(); + String revokePassword(); + String linkObtainPassword(); String linkEditFullName();
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/account/AccountConstants.properties b/gerrit-gwtui/src/main/java/com/google/gerrit/client/account/AccountConstants.properties index 9d87365..481a9a7 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/account/AccountConstants.properties +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/account/AccountConstants.properties
@@ -73,6 +73,7 @@ confirmSetUserName = Setting the Username is permanent. Are you sure? buttonClearPassword = Clear Password buttonGeneratePassword = Generate Password +revokePassword = (click 'Generate Password' to revoke an old password) linkObtainPassword = Obtain Password linkEditFullName = Edit linkReloadContact = Reload
diff --git a/gerrit-gwtui/src/main/java/com/google/gerrit/client/account/MyPasswordScreen.java b/gerrit-gwtui/src/main/java/com/google/gerrit/client/account/MyPasswordScreen.java index 03e72c7..e1d9ef0 100644 --- a/gerrit-gwtui/src/main/java/com/google/gerrit/client/account/MyPasswordScreen.java +++ b/gerrit-gwtui/src/main/java/com/google/gerrit/client/account/MyPasswordScreen.java
@@ -49,7 +49,7 @@ return; } - password = new CopyableLabel("(click 'generate' to revoke an old password)"); + password = new CopyableLabel(Util.C.revokePassword()); password.addStyleName(Gerrit.RESOURCES.css().accountPassword()); generatePassword = new Button(Util.C.buttonGeneratePassword());