mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-01 19:32:27 +08:00
feature (admin): admin console
This commit is contained in:
@ -14,13 +14,16 @@ export class ModalAlert extends Popup {
|
||||
alert.subscribe((Component, okCallback) => {
|
||||
this.setState({
|
||||
appear: true,
|
||||
value: Component
|
||||
value: Component,
|
||||
fn: okCallback
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
onSubmit(e){
|
||||
this.setState({appear: false});
|
||||
this.setState({appear: false}, () => {
|
||||
requestAnimationFrame(() => this.state.fn())
|
||||
});
|
||||
}
|
||||
|
||||
modalContentBody(){
|
||||
|
||||
Reference in New Issue
Block a user