mirror of
https://github.com/flarum/core.git
synced 2025-10-15 00:44:40 +02:00
Extract AlertManagerState from AlertManager (#2163)
This commit is contained in:
committed by
GitHub
parent
aaebd3581f
commit
ea9d601338
@@ -1,5 +1,4 @@
|
||||
import ComposerBody from './ComposerBody';
|
||||
import Alert from '../../common/components/Alert';
|
||||
import Button from '../../common/components/Button';
|
||||
import icon from '../../common/helpers/icon';
|
||||
import extractText from '../../common/utils/extractText';
|
||||
@@ -104,13 +103,11 @@ export default class ReplyComposer extends ComposerBody {
|
||||
app.alerts.dismiss(alert);
|
||||
},
|
||||
});
|
||||
app.alerts.show(
|
||||
(alert = new Alert({
|
||||
type: 'success',
|
||||
children: app.translator.trans('core.forum.composer_reply.posted_message'),
|
||||
controls: [viewButton],
|
||||
}))
|
||||
);
|
||||
alert = app.alerts.show({
|
||||
type: 'success',
|
||||
children: app.translator.trans('core.forum.composer_reply.posted_message'),
|
||||
controls: [viewButton],
|
||||
});
|
||||
}
|
||||
|
||||
app.composer.hide();
|
||||
|
Reference in New Issue
Block a user