mirror of
https://github.com/flarum/framework.git
synced 2025-04-25 06:04:04 +08:00
Use Stream util instead of m.stream
This commit is contained in:
parent
9ed0083c12
commit
961bb3178f
@ -1,6 +1,7 @@
|
||||
import Modal from 'flarum/components/Modal';
|
||||
import Button from 'flarum/components/Button';
|
||||
|
||||
import Stream from 'flarum/utils/Stream';
|
||||
import withAttr from 'flarum/utils/withAttr';
|
||||
|
||||
export default class SuspendUserModal extends Modal {
|
||||
@ -17,8 +18,8 @@ export default class SuspendUserModal extends Modal {
|
||||
else status = 'limited';
|
||||
}
|
||||
|
||||
this.status = m.stream(status);
|
||||
this.daysRemaining = m.stream(status === 'limited' && -dayjs().diff(until, 'days') + 1);
|
||||
this.status = Stream(status);
|
||||
this.daysRemaining = Stream(status === 'limited' && -dayjs().diff(until, 'days') + 1);
|
||||
}
|
||||
|
||||
className() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user