Skip to content

Commit

Permalink
Removes the "Account name" input field.
Browse files Browse the repository at this point in the history
  • Loading branch information
szilardszaloki committed Dec 12, 2024
1 parent 588f333 commit 9f6e7b5
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 21 deletions.
6 changes: 0 additions & 6 deletions app/brave_settings_strings.grdp
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@
<message name="IDS_SETTINGS_BRAVE_ACCOUNT_EMAIL_INPUT_ERROR_MESSAGE" translateable="false" desc="Error message for when the user tries to use a @bravealias.com email address when creating their Brave Account">
You can't use @bravealias.com addresses for creating Brave accounts. Please try again with a different domain.
</message>
<message name="IDS_SETTINGS_BRAVE_ACCOUNT_ACCOUNT_NAME_INPUT_LABEL" translateable="false" desc="Label for the 'Account name' input field">
Account name
</message>
<message name="IDS_SETTINGS_BRAVE_ACCOUNT_ACCOUNT_NAME_INPUT_PLACEHOLDER" translateable="false" desc="Placeholder for the 'Account name' input field">
Enter a name for your account
</message>
<message name="IDS_SETTINGS_BRAVE_ACCOUNT_CREATE_PASSWORD_INPUT_LABEL" translateable="false" desc="Label for the 'Create a password' input field">
Create a password
</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ export function getHtml(this: SettingsBraveAccountCreateDialogElement) {
<div>$i18n{braveAccountEmailInputErrorMessage}</div>
</div>
</leo-input>
<leo-input placeholder="$i18n{braveAccountAccountNameInputPlaceholder}"
@input=${this.onAccountNameInput}>
<div class="label">$i18n{braveAccountAccountNameInputLabel}</div>
</leo-input>
<leo-input placeholder="$i18n{braveAccountPasswordInputPlaceholder}"
showErrors
type="password"
Expand Down Expand Up @@ -85,7 +81,6 @@ export function getHtml(this: SettingsBraveAccountCreateDialogElement) {
<div slot="buttons">
<leo-button ?isDisabled=${!this.isEmailValid
|| this.isEmailValid && this.isEmailBraveAlias
|| !this.isAccountNameValid
|| this.passwordStrength !== 100
|| this.passwordConfirmation !== this.password
|| !this.isCheckboxChecked}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ export class SettingsBraveAccountCreateDialogElement extends CrLitElement {
static override get properties() {
return {
email: { type: String },
isAccountNameValid: { type: Boolean },
isCheckboxChecked: { type: Boolean },
isEmailBraveAlias: { type: Boolean },
isEmailValid: { type: Boolean },
Expand All @@ -140,10 +139,6 @@ export class SettingsBraveAccountCreateDialogElement extends CrLitElement {
this.isEmailBraveAlias = (/@bravealias\.com$/i).test(this.email)
}

protected onAccountNameInput(detail: { value: string }) {
this.isAccountNameValid = detail.value.length !== 0
}

protected onPasswordInput(detail: { value: string }) {
this.password = detail.value
this.browserProxy.getPasswordStrength(this.password).then(
Expand Down Expand Up @@ -176,7 +171,6 @@ export class SettingsBraveAccountCreateDialogElement extends CrLitElement {
BraveAccountBrowserProxyImpl.getInstance()
protected email: string = ''
protected icon: string = 'warning-triangle-filled'
protected isAccountNameValid: boolean = false
protected isCheckboxChecked: boolean = false
protected isEmailBraveAlias: boolean = false
protected isEmailValid: boolean = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,6 @@ void BraveAddCommonStrings(content::WebUIDataSource* html_source,
IDS_SETTINGS_BRAVE_ACCOUNT_CREATE_DIALOG_DESCRIPTION},
{"braveAccountEmailInputErrorMessage",
IDS_SETTINGS_BRAVE_ACCOUNT_EMAIL_INPUT_ERROR_MESSAGE},
{"braveAccountAccountNameInputLabel",
IDS_SETTINGS_BRAVE_ACCOUNT_ACCOUNT_NAME_INPUT_LABEL},
{"braveAccountAccountNameInputPlaceholder",
IDS_SETTINGS_BRAVE_ACCOUNT_ACCOUNT_NAME_INPUT_PLACEHOLDER},
{"braveAccountCreatePasswordInputLabel",
IDS_SETTINGS_BRAVE_ACCOUNT_CREATE_PASSWORD_INPUT_LABEL},
{"braveAccountPasswordStrengthMeterWeak",
Expand Down

0 comments on commit 9f6e7b5

Please sign in to comment.