Add link to verify account next to VERIFICATION_REQUIRED message
This commit is contained in:
parent
be08302c1f
commit
451bb4c73f
2 changed files with 20 additions and 3 deletions
|
@ -196,6 +196,7 @@ export default class App extends Component {
|
|||
this.handleDismissError = this.handleDismissError.bind(this);
|
||||
this.handleAuthSubmit = this.handleAuthSubmit.bind(this);
|
||||
this.handleRegisterSubmit = this.handleRegisterSubmit.bind(this);
|
||||
this.handleVerifyClick = this.handleVerifyClick.bind(this);
|
||||
this.handleVerifySubmit = this.handleVerifySubmit.bind(this);
|
||||
|
||||
this.saveReceipts = debounce(this.saveReceipts.bind(this), 500);
|
||||
|
@ -1443,7 +1444,7 @@ export default class App extends Component {
|
|||
this.dismissDialog();
|
||||
|
||||
if (data.verificationRequired) {
|
||||
this.openDialog("verify", data);
|
||||
this.handleVerifyClick(data.account, data.message);
|
||||
}
|
||||
|
||||
let firstClient = this.clients.values().next().value;
|
||||
|
@ -1465,6 +1466,10 @@ export default class App extends Component {
|
|||
});
|
||||
}
|
||||
|
||||
handleVerifyClick(account, message) {
|
||||
this.openDialog("verify", { account, message });
|
||||
}
|
||||
|
||||
handleVerifySubmit(code) {
|
||||
let serverID = State.getActiveServerID(this.state);
|
||||
let client = this.clients.get(serverID);
|
||||
|
@ -1737,6 +1742,7 @@ export default class App extends Component {
|
|||
onNickClick=${this.handleNickClick}
|
||||
onAuthClick=${() => this.handleAuthClick(activeBuffer.server)}
|
||||
onRegisterClick=${() => this.handleRegisterClick(activeBuffer.server)}
|
||||
onVerifyClick=${this.handleVerifyClick}
|
||||
/>
|
||||
</section>
|
||||
</>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue