mirror of
https://github.com/flarum/framework.git
synced 2025-05-24 07:39:56 +08:00
Show login modal when starting a discussion as a guest
This commit is contained in:
@ -16,13 +16,14 @@ export default class Modal extends Component {
|
||||
}
|
||||
|
||||
show(component) {
|
||||
clearTimeout(this.hideTimeout);
|
||||
this.component = component;
|
||||
m.redraw(true);
|
||||
this.$().modal('show');
|
||||
}
|
||||
|
||||
close() {
|
||||
this.$().modal('hide');
|
||||
this.hideTimeout = setTimeout(() => this.$().modal('hide'));
|
||||
}
|
||||
|
||||
destroy() {
|
||||
|
Reference in New Issue
Block a user