mirror of
https://github.com/flarum/core.git
synced 2025-08-08 09:26:34 +02:00
SignupModal: rename props to attrs
This commit is contained in:
committed by
Franz Liedke
parent
e8e4b64d7d
commit
9691a6ab92
@@ -8,7 +8,7 @@ import ItemList from '../../common/utils/ItemList';
|
|||||||
/**
|
/**
|
||||||
* The `SignUpModal` component displays a modal dialog with a singup form.
|
* The `SignUpModal` component displays a modal dialog with a singup form.
|
||||||
*
|
*
|
||||||
* ### Props
|
* ### Attrs
|
||||||
*
|
*
|
||||||
* - `username`
|
* - `username`
|
||||||
* - `email`
|
* - `email`
|
||||||
@@ -140,12 +140,12 @@ export default class SignUpModal extends Modal {
|
|||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
logIn() {
|
logIn() {
|
||||||
const props = {
|
const attrs = {
|
||||||
identification: this.email() || this.username(),
|
identification: this.email() || this.username(),
|
||||||
password: this.password(),
|
password: this.password(),
|
||||||
};
|
};
|
||||||
|
|
||||||
app.modal.show(LogInModal, props);
|
app.modal.show(LogInModal, attrs);
|
||||||
}
|
}
|
||||||
|
|
||||||
onready() {
|
onready() {
|
||||||
|
Reference in New Issue
Block a user