1
0
mirror of https://github.com/flarum/core.git synced 2025-08-04 07:27:39 +02:00

Extract ModalManagerState from ModalManager (#2162)

This commit is contained in:
Alexander Skvortsov
2020-06-30 19:59:16 -04:00
committed by GitHub
parent 4f181c84fc
commit 44376cef61
17 changed files with 130 additions and 111 deletions

View File

@@ -142,7 +142,7 @@ export default class LogInModal extends Modal {
const email = this.identification();
const props = email.indexOf('@') !== -1 ? { email } : undefined;
app.modal.show(new ForgotPasswordModal(props));
app.modal.show(ForgotPasswordModal, props);
}
/**
@@ -156,7 +156,7 @@ export default class LogInModal extends Modal {
const identification = this.identification();
props[identification.indexOf('@') !== -1 ? 'email' : 'username'] = identification;
app.modal.show(new SignUpModal(props));
app.modal.show(SignUpModal, props);
}
onready() {