mirror of
https://github.com/wassname/talk.git
synced 2026-07-16 11:22:16 +08:00
No empty username, no same username
This commit is contained in:
@@ -120,7 +120,6 @@ class ChangeUsername extends React.Component {
|
||||
) : null}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{editing ? (
|
||||
<div className={styles.actions}>
|
||||
<Button
|
||||
@@ -128,8 +127,8 @@ class ChangeUsername extends React.Component {
|
||||
icon="save"
|
||||
onClick={this.onSave}
|
||||
disabled={
|
||||
!this.state.formData.newUsername &&
|
||||
this.state.formData.newUsername !== username
|
||||
!this.state.formData.newUsername ||
|
||||
this.state.formData.newUsername === username
|
||||
}
|
||||
>
|
||||
{t('talk-plugin-auth.change_username.save')}
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
display: inline-block;
|
||||
width: 230px;
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
|
||||
> .detailIcon {
|
||||
font-size: 1.2em;
|
||||
|
||||
Reference in New Issue
Block a user