mirror of
https://github.com/flarum/core.git
synced 2025-07-20 16:21:18 +02:00
Put m.stream in flarum/utils/stream (#2316)
This commit is contained in:
committed by
GitHub
parent
6860b24b70
commit
cc875f3e95
@@ -5,6 +5,7 @@ import Button from '../../common/components/Button';
|
||||
import LogInButtons from './LogInButtons';
|
||||
import extractText from '../../common/utils/extractText';
|
||||
import ItemList from '../../common/utils/ItemList';
|
||||
import Stream from '../../common/utils/Stream';
|
||||
|
||||
/**
|
||||
* The `LogInModal` component displays a modal dialog with a login form.
|
||||
@@ -23,21 +24,21 @@ export default class LogInModal extends Modal {
|
||||
*
|
||||
* @type {Function}
|
||||
*/
|
||||
this.identification = m.stream(this.attrs.identification || '');
|
||||
this.identification = Stream(this.attrs.identification || '');
|
||||
|
||||
/**
|
||||
* The value of the password input.
|
||||
*
|
||||
* @type {Function}
|
||||
*/
|
||||
this.password = m.stream(this.attrs.password || '');
|
||||
this.password = Stream(this.attrs.password || '');
|
||||
|
||||
/**
|
||||
* The value of the remember me input.
|
||||
*
|
||||
* @type {Function}
|
||||
*/
|
||||
this.remember = m.stream(!!this.attrs.remember);
|
||||
this.remember = Stream(!!this.attrs.remember);
|
||||
}
|
||||
|
||||
className() {
|
||||
|
Reference in New Issue
Block a user